How to print current logging configuration used by the python logging module?
From Simeon’s comment, the logging_tree package lets you print out the details of the current logging configuration. >>> import logging >>> logging.getLogger(‘a’) >>> logging.getLogger(‘a.b’).setLevel(logging.DEBUG) >>> logging.getLogger(‘x.c’) >>> from logging_tree import printout >>> printout() <–“” Level WARNING | o<–“a” | Level NOTSET so inherits level WARNING | | | o<–“a.b” | Level DEBUG | o<–[x] | … Read more