Skip to main content

core.logging.formatter

Formatter 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.