-
Notifications
You must be signed in to change notification settings - Fork 427
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix log levels not affecting loggers
The current way of initializing loggers causes all loggers to default to INFO level, even if a different level is specified via the config.json or programmatically. Let's create a logger named `ab3` to serve as the base logger, and automatically prefix all loggers created using LogCenter#getLogger(...) with `ab3.` so that they all become descendants of the base logger. This allows us to change the logging level of all loggers simply by changing the logging level of the base logger (unless those loggers have specified their own logging level). Implications: Loggers not created using the LogCenter#getLogger(...) methods will not come under the above control mechanism unless their name starts with `ab3.`.
- Loading branch information
1 parent
c9c9512
commit 7e88b47
Showing
1 changed file
with
44 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters