How To Install php-Monolog on Fedora 36

In this tutorial we learn how to install php-Monolog in Fedora 36. php-Monolog is Sends your logs to files, sockets, inboxes, databases and various web services

Introduction

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

What is php-Monolog

Monolog sends your logs to files, sockets, inboxes, databases and various web services. Special handlers allow you to build advanced logging strategies. This library implements the PSR-3 [1] interface that you can type-hint against in your own libraries to keep a maximum of interoperability. You can also use it in your applications to make sure you can always use another compatible logger at a later time. [1] http

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

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

sudo dnf -y install php-Monolog

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

sudo yum -y install php-Monolog

How To Uninstall php-Monolog on Fedora 36

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

sudo dnf remove php-Monolog

php-Monolog Package Contents on Fedora 36

/usr/share/doc/php-Monolog
/usr/share/doc/php-Monolog/CHANGELOG.md
/usr/share/doc/php-Monolog/README.md
/usr/share/doc/php-Monolog/composer.json
/usr/share/doc/php-Monolog/doc
/usr/share/doc/php-Monolog/doc/01-usage.md
/usr/share/doc/php-Monolog/doc/02-handlers-formatters-processors.md
/usr/share/doc/php-Monolog/doc/03-utilities.md
/usr/share/doc/php-Monolog/doc/04-extending.md
/usr/share/doc/php-Monolog/doc/sockets.md
/usr/share/licenses/php-Monolog
/usr/share/licenses/php-Monolog/LICENSE
/usr/share/php/Monolog
/usr/share/php/Monolog/ErrorHandler.php
/usr/share/php/Monolog/Formatter
/usr/share/php/Monolog/Formatter/ChromePHPFormatter.php
/usr/share/php/Monolog/Formatter/ElasticaFormatter.php
/usr/share/php/Monolog/Formatter/FlowdockFormatter.php
/usr/share/php/Monolog/Formatter/FluentdFormatter.php
/usr/share/php/Monolog/Formatter/FormatterInterface.php
/usr/share/php/Monolog/Formatter/GelfMessageFormatter.php
/usr/share/php/Monolog/Formatter/HtmlFormatter.php
/usr/share/php/Monolog/Formatter/JsonFormatter.php
/usr/share/php/Monolog/Formatter/LineFormatter.php
/usr/share/php/Monolog/Formatter/LogglyFormatter.php
/usr/share/php/Monolog/Formatter/LogstashFormatter.php
/usr/share/php/Monolog/Formatter/MongoDBFormatter.php
/usr/share/php/Monolog/Formatter/NormalizerFormatter.php
/usr/share/php/Monolog/Formatter/ScalarFormatter.php
/usr/share/php/Monolog/Formatter/WildfireFormatter.php
/usr/share/php/Monolog/Handler
/usr/share/php/Monolog/Handler/AbstractHandler.php
/usr/share/php/Monolog/Handler/AbstractProcessingHandler.php
/usr/share/php/Monolog/Handler/AbstractSyslogHandler.php
/usr/share/php/Monolog/Handler/AmqpHandler.php
/usr/share/php/Monolog/Handler/BrowserConsoleHandler.php
/usr/share/php/Monolog/Handler/BufferHandler.php
/usr/share/php/Monolog/Handler/ChromePHPHandler.php
/usr/share/php/Monolog/Handler/CouchDBHandler.php
/usr/share/php/Monolog/Handler/CubeHandler.php
/usr/share/php/Monolog/Handler/Curl
/usr/share/php/Monolog/Handler/Curl/Util.php
/usr/share/php/Monolog/Handler/DeduplicationHandler.php
/usr/share/php/Monolog/Handler/DoctrineCouchDBHandler.php
/usr/share/php/Monolog/Handler/DynamoDbHandler.php
/usr/share/php/Monolog/Handler/ElasticSearchHandler.php
/usr/share/php/Monolog/Handler/ErrorLogHandler.php
/usr/share/php/Monolog/Handler/FilterHandler.php
/usr/share/php/Monolog/Handler/FingersCrossed
/usr/share/php/Monolog/Handler/FingersCrossed/ActivationStrategyInterface.php
/usr/share/php/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php
/usr/share/php/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php
/usr/share/php/Monolog/Handler/FingersCrossedHandler.php
/usr/share/php/Monolog/Handler/FirePHPHandler.php
/usr/share/php/Monolog/Handler/FleepHookHandler.php
/usr/share/php/Monolog/Handler/FlowdockHandler.php
/usr/share/php/Monolog/Handler/FormattableHandlerInterface.php
/usr/share/php/Monolog/Handler/FormattableHandlerTrait.php
/usr/share/php/Monolog/Handler/GelfHandler.php
/usr/share/php/Monolog/Handler/GroupHandler.php
/usr/share/php/Monolog/Handler/HandlerInterface.php
/usr/share/php/Monolog/Handler/HandlerWrapper.php
/usr/share/php/Monolog/Handler/HipChatHandler.php
/usr/share/php/Monolog/Handler/IFTTTHandler.php
/usr/share/php/Monolog/Handler/InsightOpsHandler.php
/usr/share/php/Monolog/Handler/LogEntriesHandler.php
/usr/share/php/Monolog/Handler/LogglyHandler.php
/usr/share/php/Monolog/Handler/MailHandler.php
/usr/share/php/Monolog/Handler/MandrillHandler.php
/usr/share/php/Monolog/Handler/MissingExtensionException.php
/usr/share/php/Monolog/Handler/MongoDBHandler.php
/usr/share/php/Monolog/Handler/NativeMailerHandler.php
/usr/share/php/Monolog/Handler/NewRelicHandler.php
/usr/share/php/Monolog/Handler/NullHandler.php
/usr/share/php/Monolog/Handler/PHPConsoleHandler.php
/usr/share/php/Monolog/Handler/ProcessableHandlerInterface.php
/usr/share/php/Monolog/Handler/ProcessableHandlerTrait.php
/usr/share/php/Monolog/Handler/PsrHandler.php
/usr/share/php/Monolog/Handler/PushoverHandler.php
/usr/share/php/Monolog/Handler/RavenHandler.php
/usr/share/php/Monolog/Handler/RedisHandler.php
/usr/share/php/Monolog/Handler/RollbarHandler.php
/usr/share/php/Monolog/Handler/RotatingFileHandler.php
/usr/share/php/Monolog/Handler/SamplingHandler.php
/usr/share/php/Monolog/Handler/Slack
/usr/share/php/Monolog/Handler/Slack/SlackRecord.php
/usr/share/php/Monolog/Handler/SlackHandler.php
/usr/share/php/Monolog/Handler/SlackWebhookHandler.php
/usr/share/php/Monolog/Handler/SlackbotHandler.php
/usr/share/php/Monolog/Handler/SocketHandler.php
/usr/share/php/Monolog/Handler/StreamHandler.php
/usr/share/php/Monolog/Handler/SwiftMailerHandler.php
/usr/share/php/Monolog/Handler/SyslogHandler.php
/usr/share/php/Monolog/Handler/SyslogUdp
/usr/share/php/Monolog/Handler/SyslogUdp/UdpSocket.php
/usr/share/php/Monolog/Handler/SyslogUdpHandler.php
/usr/share/php/Monolog/Handler/TestHandler.php
/usr/share/php/Monolog/Handler/WhatFailureGroupHandler.php
/usr/share/php/Monolog/Handler/ZendMonitorHandler.php
/usr/share/php/Monolog/Logger.php
/usr/share/php/Monolog/Processor
/usr/share/php/Monolog/Processor/GitProcessor.php
/usr/share/php/Monolog/Processor/IntrospectionProcessor.php
/usr/share/php/Monolog/Processor/MemoryPeakUsageProcessor.php
/usr/share/php/Monolog/Processor/MemoryProcessor.php
/usr/share/php/Monolog/Processor/MemoryUsageProcessor.php
/usr/share/php/Monolog/Processor/MercurialProcessor.php
/usr/share/php/Monolog/Processor/ProcessIdProcessor.php
/usr/share/php/Monolog/Processor/ProcessorInterface.php
/usr/share/php/Monolog/Processor/PsrLogMessageProcessor.php
/usr/share/php/Monolog/Processor/TagProcessor.php
/usr/share/php/Monolog/Processor/UidProcessor.php
/usr/share/php/Monolog/Processor/WebProcessor.php
/usr/share/php/Monolog/Registry.php
/usr/share/php/Monolog/ResettableInterface.php
/usr/share/php/Monolog/SignalHandler.php
/usr/share/php/Monolog/Utils.php
/usr/share/php/Monolog/autoload.php

References

Summary

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