PHPackages                             mimmi20/monolog-laminas-factory - 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. mimmi20/monolog-laminas-factory

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

mimmi20/monolog-laminas-factory
===============================

Provides a Factory to build a Laminas Logger using Monolog.

2.0.1(3y ago)211.7kMITPHPPHP ^8.1.0

Since Jun 24Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mimmi20/monolog-laminas-factory)[ Packagist](https://packagist.org/packages/mimmi20/monolog-laminas-factory)[ Docs](https://github.com/mimmi20/monolog-laminas-factory)[ RSS](/packages/mimmi20-monolog-laminas-factory/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (33)Versions (19)Used By (0)

monolog-laminas-factory
=======================

[](#monolog-laminas-factory)

[Monolog](https://github.com/Seldaek/monolog) Factories for Laminas and Mezzio

This library was inspired by [psr11-monolog](https://gitlab.com/blazon/psr11-monolog)and [monolog-factory](https://github.com/nikolaposa/monolog-factory).

[![Latest Stable Version](https://camo.githubusercontent.com/f12b7355a5db2dbe12def9283e93b895f1bffef53d350b712681f95455983d90/68747470733a2f2f706f7365722e707567782e6f72672f6d696d6d6932302f6d6f6e6f6c6f672d6c616d696e61732d666163746f72792f762f737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/mimmi20/monolog-laminas-factory)[![Latest Unstable Version](https://camo.githubusercontent.com/7e17382302a77ae4aef1808f2cc46a3d8902ac8852ee74b2ecf38d9bdb0ae606/68747470733a2f2f706f7365722e707567782e6f72672f6d696d6d6932302f6d6f6e6f6c6f672d6c616d696e61732d666163746f72792f762f756e737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/mimmi20/monolog-laminas-factory)[![License](https://camo.githubusercontent.com/16d70f15311c9f3f577c218ae153c600a5ae8891a4fda1b0d83cddbe758f3014/68747470733a2f2f706f7365722e707567782e6f72672f6d696d6d6932302f6d6f6e6f6c6f672d6c616d696e61732d666163746f72792f6c6963656e73653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/mimmi20/monolog-laminas-factory)

Code Status
-----------

[](#code-status)

[![codecov](https://camo.githubusercontent.com/bdea7402b004d9efb3252c2160c6256f20929d2039088a493830c873e74627a5/68747470733a2f2f636f6465636f762e696f2f67682f6d696d6d6932302f6d6f6e6f6c6f672d6c616d696e61732d666163746f72792f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/mimmi20/monolog-laminas-factory)[![Average time to resolve an issue](https://camo.githubusercontent.com/a01e19ff6294af3182e31793d166057a26ea82a568de59a2985c49da2c7aec9a/687474703a2f2f697369746d61696e7461696e65642e636f6d2f62616467652f7265736f6c7574696f6e2f6d696d6d6932302f6d6f6e6f6c6f672d6c616d696e61732d666163746f72792e737667)](http://isitmaintained.com/project/mimmi20/monolog-laminas-factory "Average time to resolve an issue")[![Percentage of issues still open](https://camo.githubusercontent.com/003fce826aa0bd6449030971c81d0ead5cbfc6c38eb6bd0c5425eba8f31756e9/687474703a2f2f697369746d61696e7461696e65642e636f6d2f62616467652f6f70656e2f6d696d6d6932302f6d6f6e6f6c6f672d6c616d696e61732d666163746f72792e737667)](http://isitmaintained.com/project/mimmi20/monolog-laminas-factory "Percentage of issues still open")

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Usage with Laminas and Mezzio](#usage-with-laminas-and-mezzio)
- [Configuration](#configuration)
    - [Minimal Configuration](#minimal-configuration)
    - [Full Configuration](#full-configuration)

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

[](#installation)

Run

```
composer require mimmi20/monolog-laminas-factory
```

Usage with Laminas and Mezzio
-----------------------------

[](#usage-with-laminas-and-mezzio)

You'll need to add configuration and register the services you'd like to use. There are number of ways to do that but the recommended way is to create a new config file `config/autoload/logger.config.php`

Configuration
-------------

[](#configuration)

config/autoload/monolog.global.php

```
