PHPackages                             yiisoft/yii2-psr-log-source - 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. [Framework](/categories/framework)
4. /
5. yiisoft/yii2-psr-log-source

ActiveYii2-extension[Framework](/categories/framework)

yiisoft/yii2-psr-log-source
===========================

A PSR LoggerInterface implementation that routes to the Yii logger

v1.0.0(3y ago)920.7k↓60.6%2[1 PRs](https://github.com/yiisoft/yii2-psr-log-source/pulls)BSD-3-ClausePHPPHP &gt;=8CI passing

Since Oct 4Pushed 1y ago9 watchersCompare

[ Source](https://github.com/yiisoft/yii2-psr-log-source)[ Packagist](https://packagist.org/packages/yiisoft/yii2-psr-log-source)[ GitHub Sponsors](https://github.com/yiisoft)[ Fund](https://opencollective.com/yiisoft)[ RSS](/packages/yiisoft-yii2-psr-log-source/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (8)Versions (2)Used By (0)

Yii2 Psr Log Source
===================

[](#yii2-psr-log-source)

This simple library implements a PSR compatible logger that routes all messages to a Yii Logger. Use this if you have a library that needs such a logger and you want to forward the messages to your existing Logger.

Logger adapter
--------------

[](#logger-adapter)

The `Logger` adapter class takes a Yii `Logger` object and implements the `LoggerInterface`.

DynamicLogger
-------------

[](#dynamiclogger)

Since Yii2 uses mutability a lot, the `Logger` adapter might hold a reference to an old Yii `Logger`. To work properly with the Service Locator pattern we must use it on every call. `DynamicLogger` does this while internally using the `Logger`and recreating it when needed.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 53.8% 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

Unknown

Total

1

Last Release

1322d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/261a6249c6f605f3956a2fae40fbb813f6b2e1e6f2bf806180c851a965426e54?d=identicon)[cebe](/maintainers/cebe)

![](https://www.gravatar.com/avatar/fc29e4e7068a00fe9b9db37b8aadda1db6020adcacef810461e47b99c2b150e6?d=identicon)[samdark](/maintainers/samdark)

![](https://www.gravatar.com/avatar/ccb75e3312d6bd454ea445ea308139fd185a4ca906ca5df21cc66e6a35de25a3?d=identicon)[SilverFire](/maintainers/SilverFire)

![](https://www.gravatar.com/avatar/99106256c24a8cb23871b99fa90e48f37f1aa71608c185759b7d2a88683a5918?d=identicon)[hiqsol](/maintainers/hiqsol)

---

Top Contributors

[![SamMousa](https://avatars.githubusercontent.com/u/547021?v=4)](https://github.com/SamMousa "SamMousa (7 commits)")[![Arhell](https://avatars.githubusercontent.com/u/26163841?v=4)](https://github.com/Arhell "Arhell (3 commits)")[![bizley](https://avatars.githubusercontent.com/u/8577314?v=4)](https://github.com/bizley "bizley (2 commits)")[![samdark](https://avatars.githubusercontent.com/u/47294?v=4)](https://github.com/samdark "samdark (1 commits)")

---

Tags

logloggingpsryii2psr-3symfonyyii2loggerinterface

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/yiisoft-yii2-psr-log-source/health.svg)

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

###  Alternatives

[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[yiisoft/yii2-symfonymailer

The SymfonyMailer integration for the Yii framework

493.6M56](/packages/yiisoft-yii2-symfonymailer)[yiisoft/yii2-twig

The Twig integration for the Yii framework

1431.9M32](/packages/yiisoft-yii2-twig)[dragon-code/support

Support package is a collection of helpers and tools for any project.

238.7M101](/packages/dragon-code-support)[yiisoft/log

Yii Logging Library

42917.2k26](/packages/yiisoft-log)[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13825.6k47](/packages/skeeks-cms)

PHPackages © 2026

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