PHPackages                             enrise/psr-log-extension - 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. enrise/psr-log-extension

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

enrise/psr-log-extension
========================

An extension to the Psr\\Log package

1.0.1(11y ago)15.1kMITPHPPHP ^5.4

Since Mar 13Pushed 3y ago2 watchersCompare

[ Source](https://github.com/Enrise/psr-log-extension)[ Packagist](https://packagist.org/packages/enrise/psr-log-extension)[ RSS](/packages/enrise-psr-log-extension/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (3)Used By (0)

Archived and unmaintained
=========================

[](#archived-and-unmaintained)

This is an old repository that is no longer used or maintained. We advice to no longer use this repository.

Original README can be found below:
-----------------------------------

[](#original-readme-can-be-found-below)

Enrise Psr\\Log extension
=========================

[](#enrise-psrlog-extension)

[![Latest Stable Version](https://camo.githubusercontent.com/c24af9fc14baf1e6ced2e8dcb4d0077200d95175abab448d773f3ebc9d25539c/68747470733a2f2f706f7365722e707567782e6f72672f656e726973652f7073722d6c6f672d657874656e73696f6e2f762f737461626c652e737667)](https://packagist.org/packages/enrise/psr-log-extension)[![License](https://camo.githubusercontent.com/3b31fef7425d17bfc86aca880338e274dc2ce99c8fe271403e122b10cf46740f/68747470733a2f2f706f7365722e707567782e6f72672f656e726973652f7073722d6c6f672d657874656e73696f6e2f6c6963656e73652e737667)](https://packagist.org/packages/enrise/psr-log-extension)

This repository contains an extension on the `LoggerAwareTrait` that comes with the `Psr\Log` package. It contains convenience methods to use the `LoggerAwareInterface` implementation in a safe way. Meaning you don't have to care whether the class you're implementing actually has a logger instance attached to it.

Usage example
-------------

[](#usage-example)

The example below works whether a logger instance has been attached or not.

```
use Psr\Log\LoggerAwareInterface;
use Enrise\Log\LoggerAwareTrait;

class Foo implements LoggerAwareInterface
{
    use LoggerAwareTrait;

    function bar()
    {
        $this->logDebug('Write a debug statement to the log');
    }
}

$foo = new Foo();
$foo->bar(); // All fine

$foo->setLogger(new ConcreteLogger());
$foo->bar(); // Writes to the logger as usual
```

Credits
-------

[](#credits)

- [Richard Tuin](https://github.com/rtuin)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.7% 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 ~2 days

Total

2

Last Release

4128d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/360150?v=4)[Richard Tuin](/maintainers/rtuin)[@rtuin](https://github.com/rtuin)

---

Top Contributors

[![rtuin](https://avatars.githubusercontent.com/u/360150?v=4)](https://github.com/rtuin "rtuin (6 commits)")[![eXistenZNL](https://avatars.githubusercontent.com/u/1150201?v=4)](https://github.com/eXistenZNL "eXistenZNL (1 commits)")

### Embed Badge

![Health badge](/badges/enrise-psr-log-extension/health.svg)

```
[![Health](https://phpackages.com/badges/enrise-psr-log-extension/health.svg)](https://phpackages.com/packages/enrise-psr-log-extension)
```

###  Alternatives

[sentry/sentry

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

1.9k247.1M335](/packages/sentry-sentry)[symfony/cache

Provides extended PSR-6, PSR-16 (and tags) implementations

4.2k373.5M3.3k](/packages/symfony-cache)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[illuminate/log

The Illuminate Log package.

6225.3M623](/packages/illuminate-log)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[api-platform/metadata

API Resource-oriented metadata attributes and factories

275.0M219](/packages/api-platform-metadata)

PHPackages © 2026

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