Skip to content
Snippets Groups Projects
Commit 6e6051f7 authored by Sander Snoo's avatar Sander Snoo
Browse files

Added option to disable logging

parent 5e671cb2
No related branches found
Tags v1.4.3
No related merge requests found
......@@ -46,6 +46,8 @@ def _generate_log_file_name():
return f"{now:%Y-%m-%d}({pid:06d}).log"
def _configure_logging(cfg):
if cfg.get('logging.disabled', False):
return
path = cfg.get('logging.file_location', '~/.core_tools')
file_level = cfg.get('logging.file_level', 'INFO')
console_level = cfg.get('logging.console_level', 'WARNING')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment