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 1mo ago

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 59% 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

3429d 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

[rollbar/rollbar

Monitors errors and exceptions and reports them to Rollbar

33723.7M82](/packages/rollbar-rollbar)[illuminate/log

The Illuminate Log package.

6224.3M518](/packages/illuminate-log)[illuminated/console-logger

Logging and Notifications for Laravel Console Commands.

8674.9k](/packages/illuminated-console-logger)[alleyinteractive/logger

A Monolog-based logging tool for WordPress. Supports storing log message in a custom post type or in individual posts and terms.

30297.5k1](/packages/alleyinteractive-logger)

PHPackages © 2026

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