def __init__(self,recordfields = [], datefmt=None, customjson=None):
        """__init__ overrides the default constructor to accept a formatter specific list of metadata fields 
        
        Args:
            recordfields : A list of strings referring to metadata fields on the record object. It can be empty.
                           The list of fields will be added to the JSON record created by the formatter. 
        """
        Formatter.__init__(self,None,datefmt)
        self.recordfields = recordfields
        self.customjson   = customjson
__init__ overrides the default constructor to accept a formatter specific list of metadata fields 
        
        Args:
            recordfields : A list of strings referring to metadata fields on the record object. It can be empty.
                           The list of fields will be added to the JSON record created by the formatter. 
        
recipes/Python/580667_JSON_Formatted_Logging/recipe-580667.py