msml.log¶
Functions
esc(*x) |
|
set_verbosity(log_level) |
|
thread_safe(func) |
|
timeit(*args, **kwds) |
Classes
ColoredFormatter(format[, datefmt, ...]) |
A formatter that allows colors to be placed in the format string. |
-
class
msml.log.ColoredFormatter(format, datefmt=None, log_colors={'DEBUG': 'white', 'INFO': 'green', 'WARNING': 'yellow', 'CRITICAL': 'bold_red', 'ERROR': 'red'}, reset=True, style='%')[source]¶ Bases:
logging.FormatterA formatter that allows colors to be placed in the format string.
Intended to help in creating more readable logging output.