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

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

enlitepro/enlite-monolog
========================

Monolog integration to Laminas

3.0.0(4y ago)18659.0k↓60.2%17[1 issues](https://github.com/enlitepro/enlite-monolog/issues)[1 PRs](https://github.com/enlitepro/enlite-monolog/pulls)MITPHPPHP ^7.1 || ^8.0CI failing

Since Oct 19Pushed 2y ago3 watchersCompare

[ Source](https://github.com/enlitepro/enlite-monolog)[ Packagist](https://packagist.org/packages/enlitepro/enlite-monolog)[ RSS](/packages/enlitepro-enlite-monolog/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (10)Dependencies (8)Versions (26)Used By (0)

Monolog integration to Laminas [![Build Status](https://camo.githubusercontent.com/ed9d77a9256e9d39e25d3fd98c69122a1556b0e7559fb038d13940d9487a6bf7/68747470733a2f2f7472617669732d63692e6f72672f656e6c69746570726f2f656e6c6974652d6d6f6e6f6c6f672e706e67)](https://travis-ci.org/enlitepro/enlite-monolog) [![Code Coverage](https://camo.githubusercontent.com/910555382c61ada4d2d5b9999e8281d253eb9bc12f6338967604cd78a3419db2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f656e6c69746570726f2f656e6c6974652d6d6f6e6f6c6f672f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/enlitepro/enlite-monolog/?branch=master) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/22148a480578157106023b3c8e42c7fde39375755a7334268c990847bd38c11a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f656e6c69746570726f2f656e6c6974652d6d6f6e6f6c6f672f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/enlitepro/enlite-monolog/?branch=master)
=====================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#monolog-integration-to-laminas---)

Integration to Laminas with great logging system [monolog](https://github.com/Seldaek/monolog)

INSTALL
=======

[](#install)

The recommended way to install is through composer from command line.

```
composer require enlitepro/enlite-monolog

```

USAGE
=====

[](#usage)

1. Add `EnliteMonolog` to your `config/application.config.php` to enable module.

```
// usage over service locator
$serviceLocator->get('EnliteMonologService')->debug('hello world');

use EnliteMonolog\Service\MonologServiceAwareInterface,
    EnliteMonolog\Service\MonologServiceAwareTrait;

// usage in your services
class MyService implements MonologServiceAwareInterface
{
    use MonologServiceAwareTrait;

    public function whatever()
    {
        $this->getMonologService()->debug('hello world');
    }
}
```

2. Copy the config file `config/monolog.global.php.dist` from the module to config/autoload your project.

By default it write logs to `data/logs/application.log`. If you want change this behaviour, add your config following:

```
    'EnliteMonolog' => array(
        'EnliteMonologService' => array(
            // Logger name
            // 'name' => 'EnliteMonolog',

            // Handlers, it can be service locator alias(string) or config(array)
            'handlers' => array(
                // by config
                'default' => array(
                    'name' => 'Monolog\Handler\StreamHandler',
                    'args' => array(
                        'stream' => 'data/log/application.log',
                        'level' => \Monolog\Logger::DEBUG,
                        'bubble' => true
                    ),
                    'formatter' => array(
                        'name' => 'Monolog\Formatter\LogstashFormatter',
                        'args' => array(
                            'applicationName' => 'My Application',
                        ),
                    ),
                ),

                // by service locator
                'MyMonologHandler'
            )
        ),

        // you can specify another logger
        // for example ChromePHPHandler

        'MyChromeLogger' => array(
            'name' => 'MyName',
            'handlers' => array(
                array(
                    'name' => 'Monolog\Handler\ChromePHPHandler',
                )
            )
        )
    ),
```

now you can use it

```
$serviceLocator->get('EnliteMonologService')->debug('hello world');
$serviceLocator->get('MyChromeLogger')->debug('hello world');
```

Contributing
------------

[](#contributing)

This library attempts to comply with [PSR-1](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md), [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md), and [PSR-4](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md). If you notice compliance oversights, please send a patch via pull request.

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity47

Moderate usage in the ecosystem

Community22

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~128 days

Recently: every ~341 days

Total

23

Last Release

1818d ago

Major Versions

v1.2.1 → v2.0.02014-02-28

v2.5.0 → 3.0.02021-07-13

PHP version history (2 changes)v2.5.0PHP ^7.1

3.0.0PHP ^7.1 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/29004cd917fdd7e4a8cc4ddba16f0bbcd90829513c57fc96e3b4f3fcb53f7ead?d=identicon)[abacaphiliac](/maintainers/abacaphiliac)

![](https://www.gravatar.com/avatar/85fd7e537322d53678e041faf9e0aa89201aa392d40de4824a08edc78c493976?d=identicon)[ftdebugger](/maintainers/ftdebugger)

---

Top Contributors

[![abacaphiliac](https://avatars.githubusercontent.com/u/1656273?v=4)](https://github.com/abacaphiliac "abacaphiliac (70 commits)")[![snapshotpl](https://avatars.githubusercontent.com/u/312655?v=4)](https://github.com/snapshotpl "snapshotpl (31 commits)")[![Sysaninster](https://avatars.githubusercontent.com/u/3197583?v=4)](https://github.com/Sysaninster "Sysaninster (21 commits)")[![ftdebugger](https://avatars.githubusercontent.com/u/170282?v=4)](https://github.com/ftdebugger "ftdebugger (17 commits)")[![johngills](https://avatars.githubusercontent.com/u/505474?v=4)](https://github.com/johngills "johngills (4 commits)")[![viktorsyaglo](https://avatars.githubusercontent.com/u/44503719?v=4)](https://github.com/viktorsyaglo "viktorsyaglo (2 commits)")[![gander](https://avatars.githubusercontent.com/u/421597?v=4)](https://github.com/gander "gander (1 commits)")[![stephandesouza](https://avatars.githubusercontent.com/u/159077?v=4)](https://github.com/stephandesouza "stephandesouza (1 commits)")[![boesing](https://avatars.githubusercontent.com/u/2189546?v=4)](https://github.com/boesing "boesing (1 commits)")

---

Tags

laminasmonologphplaminasmonolog

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[magento/community-edition

Magento 2 (Open Source)

12.2k53.6k13](/packages/magento-community-edition)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[laminas/laminas-validator

Validation classes for a wide range of domains, and the ability to chain validators to create complex validation criteria

15848.2M222](/packages/laminas-laminas-validator)[illuminate/log

The Illuminate Log package.

6225.3M626](/packages/illuminate-log)[laminas/laminas-router

Flexible routing system for HTTP and console applications

3522.5M76](/packages/laminas-laminas-router)

PHPackages © 2026

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