How To Install python3-logging-tree on AlmaLinux 8

In this tutorial we learn how to install python3-logging-tree in AlmaLinux 8. 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 AlmaLinux 8.

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 AlmaLinux 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 AlmaLinux 8 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 AlmaLinux 8 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 AlmaLinux 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 AlmaLinux 8 using yum and dnf.