Inherits Formatter.
|
def | format (self, record) |
|
|
| 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 |
|
◆ FORMATS
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:
- /home/runner/work/lagrange-docs/lagrange-docs/lagrange_tmp/modules/python/lagrange/_logging.py