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

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

gdpro/gdpro-monolog
===================

Monolog integration for ZF2

1.1.0(9y ago)22431BSD-4-ClausePHPPHP &gt;=5.5.8

Since Mar 2Pushed 9y ago1 watchersCompare

[ Source](https://github.com/gdpro/gdpro-monolog)[ Packagist](https://packagist.org/packages/gdpro/gdpro-monolog)[ RSS](/packages/gdpro-gdpro-monolog/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (9)Versions (5)Used By (1)

Gdpro Monolog
-------------

[](#gdpro-monolog)

### Introduction

[](#introduction)

The repository adds support for logging to Monolog to the Zend Framework 2.

### Changelog

[](#changelog)

[doc/CHANGELOG.md](doc/CHANGELOG.md)

### Requirements

[](#requirements)

Please see the [composer.json](composer.json) file.

### Installation

[](#installation)

Run the following `composer` command:

```
$ composer require "gdpro/gdpro-monolog:~1.0"
```

Alternately, manually add the following to your `composer.json`, in the `require` section:

```
"require": {
    "gdpro/gdpro-monolog": "^1.0"
}
```

And then run `composer update` to ensure the module is installed.

Finally, add the module name to your project's `config/application.config.php`under the `modules` key:

```
return array(
    /* ... */
    'modules' => array(
        /* ... */
        'GdproMonolog',
    ),
    /* ... */
);
```

### Documentation

[](#documentation)

By Default the monolog logging will log your error event and add them to the log files

- data/log/route.error.log
- data/log/dispatch.error.log
- data/log/

### Utilisation

[](#utilisation)

#### Default Logger

[](#default-logger)

`    $this->getServiceLocator()->get('gdpro-monolog_default')->addDebug('hello {contextvar}', ['contextvar' => 'world']);`#### Exception Logger

[](#exception-logger)

`    $this->getServiceLocator()->get('my_awesome_customized_logger')->addDebug('hello {contextvar}', ['contextvar' => 'world']);``    /*** @param MvcEvent $event*/public function onBootstrap(MvcEvent $event){  $eventManager = $event->getApplication()->getEventManager();  $moduleRouteListener = new ModuleRouteListener();  $moduleRouteListener->attach($eventManager);$eventManager->attach(MvcEvent::EVENT_FINISH, [$this, 'onFinish']);$eventManager->attach(MvcEvent::EVENT_RENDER_ERROR, [$this, 'onRenderError']);$eventManager->attach(MvcEvent::EVENT_DISPATCH_ERROR, [$this, 'onDispatchError']);}public function onFinish(MvcEvent $event){$services = $event->getApplication()->getServiceManager();$services->get(CheckSlowResponseTimeListener::class);$services->get(LogMemoryUsageListener::class);}public function onRenderError(MvcEvent $event){$services = $event->getApplication()->getServiceManager();$services->get(LogRenderErrorListener::class);}``public function onDispatchError(MvcEvent $event){$services = $event->getApplication()->getServiceManager();$services->get(LogDispatchErrorListener::class);}`

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 98.6% 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 ~150 days

Total

3

Last Release

3476d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/12bb1d3b51340daa0f19c946f2ba7d3e4b277854fc722409809d0e43845fe0de?d=identicon)[garygitton](/maintainers/garygitton)

---

Top Contributors

[![garygitton](https://avatars.githubusercontent.com/u/3704874?v=4)](https://github.com/garygitton "garygitton (73 commits)")[![gary-blur](https://avatars.githubusercontent.com/u/4920034?v=4)](https://github.com/gary-blur "gary-blur (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[illuminate/log

The Illuminate Log package.

6225.3M623](/packages/illuminate-log)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)

PHPackages © 2026

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