diff --git a/distiller/apputils/execution_env.py b/distiller/apputils/execution_env.py index e32865061276b5ba411b8aebef7860d8e1c0695f..552f02c1920788066d925e0a42a393a0467b1b2c 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)