Created
May 21, 2014 10:27
-
-
Save abesto/21516c5466c83b77419c to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
dict(filter(lambda x: x[1], [(name, [h for h in logging.getLogger(name).handlers if 'Stream' in h.__class__.__name__]) for name, logger in logging.Logger.manager.loggerDict.iteritems()])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment