cobramod.debug ============== .. py:module:: cobramod.debug .. autoapi-nested-parse:: 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` Attributes ---------- .. autoapisummary:: cobramod.debug.debug_log cobramod.debug.format_str cobramod.debug.TIME_STR cobramod.debug.colors cobramod.debug.formatter cobramod.debug.stream_handler cobramod.debug.format_str cobramod.debug.formatter_file cobramod.debug.log_dir cobramod.debug.log_path cobramod.debug.debug_handler Functions --------- .. autoapisummary:: cobramod.debug.change_to_debug Module Contents --------------- .. py:data:: debug_log .. py:data:: format_str :value: '%(log_color)s%(message)s' .. py:data:: TIME_STR :value: '%H:%M:%S' .. py:data:: colors .. py:data:: formatter .. py:data:: stream_handler .. py:data:: format_str :value: '[%(asctime)s] %(levelname)s %(message)s' .. py:data:: formatter_file .. py:data:: log_dir .. py:data:: log_path .. py:data:: debug_handler .. py:function:: 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