◆ __init__()
def python.logger.ColoredFormatter.__init__ |
( |
|
self, |
|
|
|
msg, |
|
|
|
use_color = True |
|
) |
| |
◆ format()
def python.logger.ColoredFormatter.format |
( |
|
self, |
|
|
|
record |
|
) |
| |
Definition at line 40 of file DataQuality/DQUtils/python/logger.py.
41 levelname = record.levelname
42 if self.use_color
and levelname
in COLORS:
43 color_seq = COLOR_SEQ % (30 + COLORS[levelname])
44 record.levelname = color_seq + levelname + RESET_SEQ
45 return logging.Formatter.format(self, record)
◆ use_color
python.logger.ColoredFormatter.use_color |
The documentation for this class was generated from the following file: