PHPackages                             amberovsky/zf2-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. amberovsky/zf2-monolog

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

amberovsky/zf2-monolog
======================

Monolog integration to Zend Framework 2

v0.0.4(11y ago)51.4k1PHPPHP &gt;=5.5

Since Apr 17Pushed 11y ago1 watchersCompare

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

READMEChangelogDependencies (6)Versions (5)Used By (0)

Monolog integration to Zend Framework 2
=======================================

[](#monolog-integration-to-zend-framework-2)

Install
=======

[](#install)

```
{
    "require": {
        "amberovsky/zf2-monolog": "~0"
    }
}
```

Usage
=====

[](#usage)

- Add `Monolog` to your `config/application.config.php`.
- Configure loggers (`config/logs.php`):

```
use Amberovsky\Monolog\Config;
use Monolog\Handler\StreamHandler;
use Formatter;

return [
	'monolog'	=> [
        'root'  => [
            Config::SECTION_HANDLERS    => [
                [
                    Config::HANDLER_CLASS   => StreamHandler::class,
                    Config::HANDLER_ARGS    => [
                        'path'  => '/var/log/root.log',
                    ],

                    config::HANDLER_FORMATTER   => [
                        Config::FORMATTER_CLASS => Formatter::class,
                        Config::FORMATTER_ARGS  => [

                        ]
                    ],
                ],
            ],
        ]
	]
];
```

- Write to log:

```
use Amberovsky\Monolog\MonologFactoryTrait;

class Whatever {
    use MonologFactoryTrait;

    public function action() {
         $this->getMonologFactory()->getLogger('root')->debug('hello');
    }
}
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

4049d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/477339?v=4)[amberovsky](/maintainers/amberovsky)[@amberovsky](https://github.com/amberovsky)

---

Top Contributors

[![amberovsky](https://avatars.githubusercontent.com/u/477339?v=4)](https://github.com/amberovsky "amberovsky (4 commits)")

---

Tags

modulezf2monolog

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/amberovsky-zf2-monolog/health.svg)

```
[![Health](https://phpackages.com/badges/amberovsky-zf2-monolog/health.svg)](https://phpackages.com/packages/amberovsky-zf2-monolog)
```

###  Alternatives

[snapshotpl/zf-snap-php-debug-bar

PHP Debug Bar module for Zend Framework 2

3026.1k](/packages/snapshotpl-zf-snap-php-debug-bar)[davidhavl/dherrorlogging

Full featured error logging module for ZF2/ZF3 application

1924.5k](/packages/davidhavl-dherrorlogging)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
