Skip to content
Snippets Groups Projects
Commit bdab1fa5 authored by Neta Zmora's avatar Neta Zmora
Browse files

Add logging of `app_cfg` to the logger default

`app_cfg` logs the basic execution environment state, and is deemed important
in most circumstances.
parent 05d5592e
No related branches found
No related tags found
No related merge requests found
...@@ -186,10 +186,18 @@ def apply_default_logger_cfg(log_filename): ...@@ -186,10 +186,18 @@ def apply_default_logger_cfg(log_filename):
'formatter': 'simple', 'formatter': 'simple',
}, },
}, },
'root': { 'loggers': {
'level': 'DEBUG', '': { # root logger
'handlers': ['console', 'file'] 'level': 'DEBUG',
}, 'handlers': ['console', 'file'],
'propagate': False
},
'app_cfg': {
'level': 'DEBUG',
'handlers': ['file'],
'propagate': False
},
}
} }
logging.config.dictConfig(d) logging.config.dictConfig(d)
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