7.1.2.1. cobramod.debug¶
Debugging configuration for CobraMod
The logs are saved in the directory ‘logs’ created in the working directory. Cobramod saves the logs by date, i.e, running the commands in different days will results in different files. The default level is set to INFO.
The name of logger variable is debug_log
7.1.2.1.1. Attributes¶
7.1.2.1.2. Functions¶
Changes the logging level to DEBUG and changes the formatting of it. |
7.1.2.1.3. Module Contents¶
- cobramod.debug.debug_log¶
- cobramod.debug.format_str = '%(log_color)s%(message)s'¶
- cobramod.debug.TIME_STR = '%H:%M:%S'¶
- cobramod.debug.colors¶
- cobramod.debug.formatter¶
- cobramod.debug.stream_handler¶
- cobramod.debug.format_str = '[%(asctime)s] %(levelname)s %(message)s'¶
- cobramod.debug.formatter_file¶
- cobramod.debug.log_dir¶
- cobramod.debug.log_path¶
- cobramod.debug.debug_handler¶
- cobramod.debug.change_to_debug()¶
Changes the logging level to DEBUG and changes the formatting of it. This function is intented to be used only for the tests
- Return type:
None