Python Forum
Hierarchical logging in Python - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: General (https://python-forum.io/forum-1.html)
+--- Forum: Code sharing (https://python-forum.io/forum-5.html)
+--- Thread: Hierarchical logging in Python (/thread-38587.html)



Hierarchical logging in Python - etuzon - Nov-03-2022

The most used logging these days is logging that prints the logs a row under a row.
There are flows that will be hard to debug by kind of logs.
Example: A flow of method that calls a child(1st, 2nd) method multiple times.
It can be easier to track the flow if the logs were hierarchy.
nrt-logging is a free open source that prints logging in a hierarchy in YAML format.


How to install: pip install nrt-logging

You can find more information in

GitHub: https://github.com/etuzon/Python-NRT-Logging
GitHub wiki:https://github.com/etuzon/Python-NRT-Logging/wiki
PYPI: https://pypi.org/project/nrt-logging
[attachment=2066]