ColoredFormatter.format

ColoredFormatter.format(record: logging.LogRecord)str[source]

Prepends a fixed-length, coloured trailer with the log level.

Parameters

record (LogRecord) – The record to be logged.

Returns

The formatted message

Return type

str