MCPcopy
hub / github.com/apache/airflow / format

Method format

airflow/utils/log/json_formatter.py:43–47  ·  view source on GitHub ↗
(self, record)

Source from the content-addressed store, hash-verified

41 return self.json_fields.count('asctime') > 0
42
43 def format(self, record):
44 super().format(record)
45 record_dict = {label: getattr(record, label, None) for label in self.json_fields}
46 merged_record = merge_dicts(record_dict, self.extras)
47 return json.dumps(merged_record)

Callers 15

test_formatMethod · 0.95
validate_logging_configFunction · 0.45
_warn_deprecateMethod · 0.45
parameterized_configFunction · 0.45
generate_pagesFunction · 0.45
task_instance_linkFunction · 0.45
state_tokenFunction · 0.45
nobrFunction · 0.45

Calls 1

merge_dictsFunction · 0.90

Tested by 15

test_formatMethod · 0.76
my_py_commandFunction · 0.36
start_dagMethod · 0.36
skip_system_testFunction · 0.36
skip_long_running_testFunction · 0.36
skip_quarantined_testFunction · 0.36
skip_if_wrong_backendFunction · 0.36