PHPackages                             sirix/monolog - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. sirix/monolog

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

sirix/monolog
=============

Monolog Factories for Mezzio

2.0.1(1mo ago)11.3k1BSD-2-ClausePHPPHP ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0CI passing

Since Feb 15Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/sirix777/sirix-monolog)[ Packagist](https://packagist.org/packages/sirix/monolog)[ Fund](https://buymeacoffee.com/sirix)[ GitHub Sponsors](https://github.com/sirix777)[ RSS](/packages/sirix-monolog/feed)WikiDiscussions main Synced yesterday

READMEChangelog (10)Dependencies (24)Versions (13)Used By (1)

Mezzio Monolog Factory
======================

[](#mezzio-monolog-factory)

[![Latest Stable Version](https://camo.githubusercontent.com/f75cca01fee6219c2947d64b32f5bf36a74d2d472c70cbada551c1356076d7d8/687474703a2f2f706f7365722e707567782e6f72672f73697269782f6d6f6e6f6c6f672f76)](https://packagist.org/packages/sirix/monolog) [![Total Downloads](https://camo.githubusercontent.com/1bdc0aec01ae2305333c3a6550b635da9e171349980776248c6851185d45fe3e/687474703a2f2f706f7365722e707567782e6f72672f73697269782f6d6f6e6f6c6f672f646f776e6c6f616473)](https://packagist.org/packages/sirix/monolog) [![License](https://camo.githubusercontent.com/a3452fb703588b4bb459bfa6f2fcf6124275fcf7b4234c2f69c0b9958b5f9f90/687474703a2f2f706f7365722e707567782e6f72672f73697269782f6d6f6e6f6c6f672f6c6963656e7365)](https://packagist.org/packages/sirix/monolog) [![PHP Version Require](https://camo.githubusercontent.com/90249b047307f1cd89cb2613316ff5763511c5a584c97f48c8e3d772e4d4d33a/687474703a2f2f706f7365722e707567782e6f72672f73697269782f6d6f6e6f6c6f672f726571756972652f706870)](https://packagist.org/packages/sirix/monolog)

Explicit Mezzio Monolog factory integration built around PSR-11, strict configuration, and predictable factories.

Requirements
------------

[](#requirements)

- PHP 8.2+
- Monolog 3.x
- PSR-11 compatible container
- Mezzio config aggregation, or another container that can consume the provided factory map

Installation
------------

[](#installation)

```
composer require sirix/monolog
```

Register the config provider
----------------------------

[](#register-the-config-provider)

In Mezzio applications that use `laminas/laminas-component-installer`, the provider is registered automatically during Composer install.

If your application does not use auto-discovery, add the provider to `config/config.php` manually:

```
