Introspect Python logging with logging_tree
rhodesmill.org·6d
📝Write-Ahead Log
Preview
Report Post
Date:Tags:
13 April 2012
python, computing

It is frustrating that Python’s logging module cannot display the tangled tree of configured loggers that often result from combining your own application code with several libraries and frameworks. So I have released a new Python package named logging_tree, which I announced last month during the PyCon 2012 closing lightning talks. My package displays the current logging tree to help debugging, and its output looks something like this:

<--""
Level WARNING
Handler Stream <open file '<stderr>', mode 'w' at ...>
|
o<--[cherrypy]
|
o<--"cherrypy.access"
|   Lev...

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help