def formatter_fields_for_record(self, record):
datetime_serialized = (<EOL>datetime.now(timezone.utc).astimezone(self.tz).isoformat()<EOL>)<EOL>default_fields = (<EOL>(LOGGED_AT_FIELDNAME, datetime_serialized),<EOL>(LINE_NUMBER_FIELDNAME, record.lineno),<EOL>(FUNCTION_NAME_FIELDNAME, record.funcName),<EOL>(LOG_LEVEL_FIELDNAME, self.level_to_name_mapping[record.levelno]),<EOL>(FILE_PATH_FIELDNAME, record.pathname),<EOL>)<EOL>for field, value in default_fields:<EOL><INDENT>if field in self.log_fields:<EOL><INDENT>yield field, value<EOL><DEDENT><DEDENT>
:type record: aiologger.loggers.json.LogRecord