csle_common.logging package
Submodules
csle_common.logging.custom_formatter module
- class csle_common.logging.custom_formatter.CustomFormatter(fmt=None, datefmt=None, style='%', validate=True)[source]
Bases:
logging.Formatter
Custom formatter for DEBUG-logging.
Custom Formatter does these 2 things: 1. Overrides ‘funcName’ with the value of ‘func_name_override’, if it exists. 2. Overrides ‘filename’ with the value of ‘file_name_override’, if it exists.