How To Install php-ZendFramework2-Log on CentOS 7
Introduction
In this tutorial we learn how to install php-ZendFramework2-Log
on CentOS 7.
What is php-ZendFramework2-Log
Zend\Log\Logger is a component for general purpose logging. It supports multiple log backends, formatting messages sent to the log, and filtering messages from being logged. These functions are divided into the following objects * A Logger (instance of Zend\Log\Logger) is the object that your application uses the most. You can have as many Logger objects as you like; they do not interact. A Logger object must contain at least one Writer, and can optionally contain one or more Filters. * A Writer (inherits from Zend\Log\Writer\AbstractWriter) is responsible for saving data to storage. * A Filter (implements Zend\Log\Filter\FilterInterface) blocks log data from being saved. A filter is applied to an individual writer. Filters can be chained. * A Formatter (implements Zend\Log\Formatter\FormatterInterface) can format the log data before it is written by a Writer. Each Writer has exactly one Formatter. Optional
We can use yum
or dnf
to install php-ZendFramework2-Log
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install php-ZendFramework2-Log.
Install php-ZendFramework2-Log on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install php-ZendFramework2-Log
using yum
by running the following command:
Install php-ZendFramework2-Log on CentOS 7 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.
After updating yum database, We can install php-ZendFramework2-Log
using dnf
by running the following command:
How To Uninstall php-ZendFramework2-Log on CentOS 7
To uninstall only the php-ZendFramework2-Log
package we can use the following command:
References
Summary
In this tutorial we learn how to install php-ZendFramework2-Log
on CentOS 7 using yum
and dnf
.