From 49a5bccfec3c1b7bb91b56e67a02ab56b212b88c Mon Sep 17 00:00:00 2001 From: Jinge Wang Date: Thu, 10 Nov 2022 09:20:33 +0800 Subject: [PATCH] Don't disable existing logger when initializing qlib. (#1339) * Don't disable existing logger when initializing qlib. * Add comma in the end of the config line. * Add comment to the added config. Co-authored-by: Jinge Wang --- qlib/config.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qlib/config.py b/qlib/config.py index 8fc7d778d..4b4123643 100644 --- a/qlib/config.py +++ b/qlib/config.py @@ -172,6 +172,9 @@ _default_config = { } }, "loggers": {"qlib": {"level": logging.DEBUG, "handlers": ["console"]}}, + # To let qlib work with other packages, we shouldn't disable existing loggers. + # Note that this param is default to True according to the documentation of logging. + "disable_existing_loggers": False, }, # Default config for experiment manager "exp_manager": {