How To Install php-consolidation-log on Fedora 36

In this tutorial we learn how to install php-consolidation-log in Fedora 36. php-consolidation-log is Improved PSR-3 / Psr\Log logger based on Symfony Console components

Introduction

In this tutorial we learn how to install php-consolidation-log on Fedora 36.

What is php-consolidation-log

Consolidation\Log provides a Psr-3 compatible logger that provides styled log output to the standard error (stderr) stream. By default, styling is provided by the SymfonyStyle class from the Symfony Console component; however, alternative stylers may be provided if desired. Autoloader

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

Install php-consolidation-log 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 php-consolidation-log using dnf by running the following command:

sudo dnf -y install php-consolidation-log

Install php-consolidation-log 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 php-consolidation-log using yum by running the following command:

sudo yum -y install php-consolidation-log

How To Uninstall php-consolidation-log on Fedora 36

To uninstall only the php-consolidation-log package we can use the following command:

sudo dnf remove php-consolidation-log

php-consolidation-log Package Contents on Fedora 36

/usr/share/doc/php-consolidation-log
/usr/share/doc/php-consolidation-log/CHANGELOG.md
/usr/share/doc/php-consolidation-log/CONTRIBUTING.md
/usr/share/doc/php-consolidation-log/README.md
/usr/share/doc/php-consolidation-log/composer.json
/usr/share/licenses/php-consolidation-log
/usr/share/licenses/php-consolidation-log/LICENSE
/usr/share/php/Consolidation
/usr/share/php/Consolidation/Log
/usr/share/php/Consolidation/Log/ConsoleLogLevel.php
/usr/share/php/Consolidation/Log/LogOutputStyler.php
/usr/share/php/Consolidation/Log/LogOutputStylerInterface.php
/usr/share/php/Consolidation/Log/Logger.php
/usr/share/php/Consolidation/Log/LoggerManager.php
/usr/share/php/Consolidation/Log/StylableLoggerInterface.php
/usr/share/php/Consolidation/Log/SymfonyLogOutputStyler.php
/usr/share/php/Consolidation/Log/UnstyledLogOutputStyler.php
/usr/share/php/Consolidation/Log/autoload.php

References

Summary

In this tutorial we learn how to install php-consolidation-log on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).