Lagrange
ColorFormatter Class Reference

Inherits Formatter.

Public Member Functions

def format (self, record)
 

Static Public Attributes

 grey = colorama.Fore.LIGHTBLACK_EX
 
 yellow = colorama.Fore.YELLOW
 
 red = colorama.Fore.RED
 
 bold_red = colorama.Style.BRIGHT + colorama.Fore.RED
 
 reset = colorama.Style.RESET_ALL
 
string format_template = "[%(asctime)s] [%(name)s] {color}[%(levelname)s]{reset} %(message)s"
 
dictionary FORMATS
 

Member Data Documentation

◆ FORMATS

dictionary FORMATS
static
Initial value:
= {
logging.DEBUG: format_template.format(color=grey, reset=reset),
logging.INFO: format_template.format(color=grey, reset=reset),
logging.WARNING: format_template.format(color=yellow, reset=reset),
logging.ERROR: format_template.format(color=red, reset=reset),
logging.CRITICAL: format_template.format(color=bold_red, reset=reset),
}

The documentation for this class was generated from the following file: