How To Install python3-logging-tree on CentOS 8
Introduction
In this tutorial we learn how to install python3-logging-tree on CentOS 8.
What is python3-logging-tree
Introspection for the
logginglogger tree in the Standard Library. While you can write programs that call this package’stree()function and examine the hierarchy of logger objects that it finds inside of the Standard Libraryloggingmodule, the simplest use of this package for debugging is to callprintout()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 CentOS 8. 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 CentOS 8 Using yum
Update yum database with yum using the following command.
sudo yum makecache
After updating yum database, We can install python3-logging-tree using yum by running the following command:
sudo yum -y install python3-logging-tree
Install python3-logging-tree on CentOS 8 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf using the following command.
sudo dnf makecache
After updating yum database, We can install python3-logging-tree using dnf by running the following command:
sudo dnf -y install python3-logging-tree
How To Uninstall python3-logging-tree on CentOS 8
To uninstall only the python3-logging-tree package we can use the following command:
sudo dnf remove python3-logging-tree
References
Summary
In this tutorial we learn how to install python3-logging-tree on CentOS 8 using yum and dnf.