Last active
August 29, 2015 14:01
-
-
Save jonblack/3e6da7bbec62e46fe284 to your computer and use it in GitHub Desktop.
Outputs the names and levels of all configured loggers
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
import logging | |
_log = logging.getLogger(__name__) | |
for logger_name in logging.Logger.manager.loggerDict.keys(): | |
print logger_name, logging.getLevelName(logging.getLogger(logger_name).level) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment