How To Install python3-logging-tree on Fedora 36

In this tutorial we learn how to install python3-logging-tree in Fedora 36. python3-logging-tree is Introspect and display the logger tree inside “logging”

Introduction

In this tutorial we learn how to install python3-logging-tree on Fedora 36.

What is python3-logging-tree

Introspection for the logging logger tree in the Standard Library. While you can write programs that call this package’s tree() function and examine the hierarchy of logger objects that it finds inside of the Standard Library logging module, the simplest use of this package for debugging is to call printout() to print the loggers, filters, and handlers that your application has configured »> logging.getLogger(‘a’) »> logging.getLogger(‘a.b’).setLevel(logging.DEBUG) »> logging.getLogger(‘x.c’) »> from logging_tree import printout »> printout() "" Level WARNING | o<–“a” | | | o<–“a.b” | Level DEBUG | o<–[x] | o<–“x.c”

We can use yum or dnf to install python3-logging-tree on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-logging-tree.

Install python3-logging-tree on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install python3-logging-tree using dnf by running the following command:

sudo dnf -y install python3-logging-tree

Install python3-logging-tree on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install python3-logging-tree using yum by running the following command:

sudo yum -y install python3-logging-tree

How To Uninstall python3-logging-tree on Fedora 36

To uninstall only the python3-logging-tree package we can use the following command:

sudo dnf remove python3-logging-tree

python3-logging-tree Package Contents on Fedora 36

/usr/lib/python3.10/site-packages/logging_tree
/usr/lib/python3.10/site-packages/logging_tree-1.9-py3.10.egg-info
/usr/lib/python3.10/site-packages/logging_tree/__init__.py
/usr/lib/python3.10/site-packages/logging_tree/__pycache__
/usr/lib/python3.10/site-packages/logging_tree/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/logging_tree/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/logging_tree/__pycache__/format.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/logging_tree/__pycache__/format.cpython-310.pyc
/usr/lib/python3.10/site-packages/logging_tree/__pycache__/nodes.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/logging_tree/__pycache__/nodes.cpython-310.pyc
/usr/lib/python3.10/site-packages/logging_tree/format.py
/usr/lib/python3.10/site-packages/logging_tree/nodes.py
/usr/lib/python3.10/site-packages/logging_tree/tests
/usr/lib/python3.10/site-packages/logging_tree/tests/__init__.py
/usr/lib/python3.10/site-packages/logging_tree/tests/__pycache__
/usr/lib/python3.10/site-packages/logging_tree/tests/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/logging_tree/tests/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/logging_tree/tests/__pycache__/case.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/logging_tree/tests/__pycache__/case.cpython-310.pyc
/usr/lib/python3.10/site-packages/logging_tree/tests/__pycache__/test_format.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/logging_tree/tests/__pycache__/test_format.cpython-310.pyc
/usr/lib/python3.10/site-packages/logging_tree/tests/__pycache__/test_node.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/logging_tree/tests/__pycache__/test_node.cpython-310.pyc
/usr/lib/python3.10/site-packages/logging_tree/tests/case.py
/usr/lib/python3.10/site-packages/logging_tree/tests/test_format.py
/usr/lib/python3.10/site-packages/logging_tree/tests/test_node.py
/usr/share/licenses/python3-logging-tree
/usr/share/licenses/python3-logging-tree/COPYRIGHT

References

Summary

In this tutorial we learn how to install python3-logging-tree on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).