Skip to content

Instantly share code, notes, and snippets.

@jonblack
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonblack/3e6da7bbec62e46fe284 to your computer and use it in GitHub Desktop.
Save jonblack/3e6da7bbec62e46fe284 to your computer and use it in GitHub Desktop.
Outputs the names and levels of all configured loggers
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