def METHOD_NAME(self, record):
    fields = vars(record).copy()
    fields["@timestamp"] = self.format_time(record)
    fields["@version"] = 1
    fields["LocationInfo"] = self._build_location(fields)
    fields["message"] = record.getMessage()
    fields["extras"] = getattr(record, "extras", {})
    if "exc_info" in fields and fields["exc_info"]:
        fields["throwable"] = self.formatException(fields["exc_info"])
    for original, replacement in self.RENAME.items():
        fields[replacement] = fields.pop(original)
    for unwanted in self.UNWANTED:
        fields.pop(unwanted)
    return json.dumps(fields, default=self._default_json_default)