coreloggingformatterOn this pagecore.logging.formatterFormatter Objects class Formatter(logging.Formatter) Customized log formatter. This formatter mainly colorizes log records for better readability. format def format(record: logging.LogRecord) -> str Colorizes the various portions of a log record. Returns: The formatted text.