Class for colouring output messages
Definition at line 24 of file function_set.py.
◆ format() [1/2]
| function_set.CustomFormatter.format |
( |
|
self, |
|
|
|
record |
|
) |
| |
◆ format() [2/2]
| function_set.CustomFormatter.format |
( |
|
self, |
|
|
|
record |
|
) |
| |
◆ bold_red
| str function_set.CustomFormatter.bold_red = "\x1b[31;1m" |
|
static |
◆ datefmt
| str function_set.CustomFormatter.datefmt = '%Y-%m-%d %H:%M:%S', |
|
static |
◆ format
| str function_set.CustomFormatter.format = '%(asctime)s %(levelname)s: %(message)s' |
|
static |
◆ FORMATS
| dict function_set.CustomFormatter.FORMATS |
|
static |
Initial value:= {
logging.DEBUG: grey + format + reset,
logging.INFO: format,
logging.WARNING: yellow + format + reset,
logging.ERROR: red + format + reset,
logging.CRITICAL: bold_red + format + reset
}
Definition at line 33 of file function_set.py.
Referenced by function_set.CustomFormatter.format().
◆ grey
| str function_set.CustomFormatter.grey = "\x1b[38;20m" |
|
static |
◆ red
| str function_set.CustomFormatter.red = "\x1b[33;91m" |
|
static |
◆ reset
| str function_set.CustomFormatter.reset = "\x1b[0m" |
|
static |
◆ yellow
| str function_set.CustomFormatter.yellow = "\x1b[33;93m" |
|
static |
The documentation for this class was generated from the following files: