From bdab1fa5272a6b590d0ffa6a7f7b8784d6cf44b5 Mon Sep 17 00:00:00 2001 From: Neta Zmora <neta.zmora@intel.com> Date: Mon, 7 Oct 2019 13:43:45 +0300 Subject: [PATCH] Add logging of `app_cfg` to the logger default `app_cfg` logs the basic execution environment state, and is deemed important in most circumstances. --- distiller/apputils/execution_env.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/distiller/apputils/execution_env.py b/distiller/apputils/execution_env.py index e328650..552f02c 100755 --- a/distiller/apputils/execution_env.py +++ b/distiller/apputils/execution_env.py @@ -186,10 +186,18 @@ def apply_default_logger_cfg(log_filename): 'formatter': 'simple', }, }, - 'root': { - 'level': 'DEBUG', - 'handlers': ['console', 'file'] - }, + 'loggers': { + '': { # root logger + 'level': 'DEBUG', + 'handlers': ['console', 'file'], + 'propagate': False + }, + 'app_cfg': { + 'level': 'DEBUG', + 'handlers': ['file'], + 'propagate': False + }, + } } logging.config.dictConfig(d) -- GitLab