ColorFormatter
Wrap formatted records in ANSI color based on level (TTY only).
Attributes
attributeCOLORS= {logging.DEBUG: GRAY, logging.INFO: GRAY, logging.WARNING: YELLOW, logging.ERROR: RED, logging.CRITICAL: RED}attributeuse_color= use_color and sys.stdout.isatty()Functions
func__init__(self, fmt=None, datefmt=None, use_color=True)paramselfparamfmt= Noneparamdatefmt= Noneparamuse_color= TrueReturns
Nonefuncformat(self, record)paramselfparamrecordReturns
None