Skip to content

Commit

Permalink
Don't disable existing logger when initializing qlib. (#1339)
Browse files Browse the repository at this point in the history
* 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 <jingewang@microsoft.com>
  • Loading branch information
jingedawang and Jinge Wang committed Nov 10, 2022
1 parent 59fbf23 commit 49a5bcc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions qlib/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ def register_from_C(self, config, skip_register=True):
}
},
"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": {
Expand Down

0 comments on commit 49a5bcc

Please sign in to comment.