ColoredFormatter¶
Description
-
class
lab_utils.custom_logging.
ColoredFormatter
(fmt=None, datefmt=None, style='%')[source]¶ Console
formatter
that prepends the coloured severity level of the message. Based upon this gist.Attributes
Colour mapping.
Terminal colour codes.
Prefix to modify terminal output colour.
Suffix to modify terminal output colour.
Methods
Prepends a fixed-length, coloured trailer with the log level.