PHPackages                             elementary/logger-pool - 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. elementary/logger-pool

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

elementary/logger-pool
======================

The pool of different loggers wich impliments \\PSR\\Log\\LoggerInterface

1.0.1(8y ago)0150MITPHPPHP &gt;=5.6

Since Mar 15Pushed 8y ago1 watchersCompare

[ Source](https://github.com/php-elementary/logger-pool)[ Packagist](https://packagist.org/packages/elementary/logger-pool)[ RSS](/packages/elementary-logger-pool/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

The pool of different loggers wich impliments \\PSR\\Log\\LoggerInterface
=========================================================================

[](#the-pool-of-different-loggers-wich-impliments-psrlogloggerinterface)

[![Latest Stable Version](https://camo.githubusercontent.com/a0c8fc79669d0d56b0eaa630d20038df9f9a9e7a2ce6f150247c496713323dee/68747470733a2f2f706f7365722e707567782e6f72672f656c656d656e746172792f6c6f676765722d706f6f6c2f762f737461626c65)](https://packagist.org/packages/elementary/logger-pool)[![License](https://camo.githubusercontent.com/26ae5774c2544e7756bbca59d2d876f98729ceae76271a15a1a304e47808f4a8/68747470733a2f2f706f7365722e707567782e6f72672f656c656d656e746172792f6c6f676765722d706f6f6c2f6c6963656e7365)](https://packagist.org/packages/elementary/logger-pool)[![Build Status](https://camo.githubusercontent.com/7b38eb23c132dacfedd3048285f702ce750045421ed9e4b0e8cce45403b4a281/68747470733a2f2f7472617669732d63692e6f72672f7068702d656c656d656e746172792f6c6f676765722d706f6f6c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/php-elementary/logger-pool)[![Coverage Status](https://camo.githubusercontent.com/158c8773f1a446694629e25a91e84c88b74d71615ae96e4e27a949b774abd0a9/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7068702d656c656d656e746172792f6c6f676765722d706f6f6c2f62616467652e737667)](https://coveralls.io/github/php-elementary/logger-pool)

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/) and then run

```
composer require elementary/logger-pool

```

Usage
-----

[](#usage)

```
use elementary\logger\pool\LoggerPool;
use elementary\logger\traits\LoggerGetInterface;
use elementary\logger\traits\LoggerTrait;
use elementary\logger\graylog\udp\GraylogUdp;
use Psr\Log\LoggerAwareInterface;
use Psr\Log\NullLogger;

class Example implements LoggerGetInterface, LoggerAwareInterface
{
    use LoggerTrait;

    public function doSomeThing()
    {
        // Do some thing
        $this->getLogger()->debug('do some thing');

        // Runtime error should be logged and monitored
        $this->getLogger()->error('Attantion! The error was happened!');
    }
}

LoggerPool::me()->setLogger(new NullLogger());
LoggerPool::me()->setLogger(new GraylogUdp('test', 'localhost', 12201), 'warning');

$ex = new Example();
$ex->setLogger(LoggerPool::me());
$ex->doSomeThing();
```

Testing and Code coverage
-------------------------

[](#testing-and-code-coverage)

Unit Tests are located in `tests` directory. You can run your tests and collect coverage with the following command:

```
vendor/bin/phpunit

```

Result of coverage will be output into the `tests/output` directory.

License
-------

[](#license)

For license information check the [LICENSE](LICENSE)-file.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

3025d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/797553ab4740e78d80571f66be4bf6a5fcfccc620a6daa4943f3d25635c9d971?d=identicon)[elementary](/maintainers/elementary)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/elementary-logger-pool/health.svg)

```
[![Health](https://phpackages.com/badges/elementary-logger-pool/health.svg)](https://phpackages.com/packages/elementary-logger-pool)
```

###  Alternatives

[sentry/sentry

PHP SDK for Sentry (http://sentry.io)

1.9k240.0M315](/packages/sentry-sentry)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[illuminate/log

The Illuminate Log package.

6225.0M603](/packages/illuminate-log)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[api-platform/metadata

API Resource-oriented metadata attributes and factories

244.5M182](/packages/api-platform-metadata)[pagemachine/typo3-formlog

Form log for TYPO3

23233.9k8](/packages/pagemachine-typo3-formlog)

PHPackages © 2026

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