betty.logging module¶
Provide logging utilities.
- class betty.logging.CliHandler[source]¶
Bases:
StreamHandler
A logging handler for Betty’s Command Line Interface.
- COLOR_LEVELS = {0: 97, 10: 97, 20: 92, 30: 93, 40: 91, 50: 91}¶
- format(record: logging.LogRecord) str [source]¶
Format the specified record.
If a formatter is set, use it. Otherwise, use the default formatter for the module.
- Parameters:
record (
logging.LogRecord
)- Return type: