PHPackages                             vjik/yii2-psr-logger-proxy - 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. vjik/yii2-psr-logger-proxy

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

vjik/yii2-psr-logger-proxy
==========================

PSR-3 compatible logger proxy for Yii2

1.0.0(5y ago)2221BSD-3-ClausePHPCI failing

Since Aug 2Pushed 5y ago1 watchersCompare

[ Source](https://github.com/vjik/yii2-psr-logger-proxy)[ Packagist](https://packagist.org/packages/vjik/yii2-psr-logger-proxy)[ RSS](/packages/vjik-yii2-psr-logger-proxy/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (1)

PSR-3 compatible logger proxy for Yii2
======================================

[](#psr-3-compatible-logger-proxy-for-yii2)

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

[](#installation)

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

```
composer require vjik/yii2-psr-logger-proxy

```

Base usage
----------

[](#base-usage)

```
use Vjik\Yii2\Psr\LoggerProxy\LoggerProxy;

$loggerProxy = new LoggerProxy(\Yii::getLogger());
```

Advanced usage
--------------

[](#advanced-usage)

```
use Vjik\Yii2\Psr\LoggerProxy\LoggerProxy;

// Create proxy
$loggerProxy = new LoggerProxy(\Yii::getLogger());

// Set default Yii2 log category (default "application")
$loggerProxy->setDefaultCategory('psr-3');

// Add PSR-3 log context params for use as Yii2 log category
$loggerProxy->addCategoryParam('category');
$loggerProxy->addCategoryParam('type');

// Set custom function for prepare PSR-3 log message tot Yii2 log message
// Return message or NULL for use internal prepare message function.
$loggerProxy->setPrepareMessage(function ($message, $context) {
    if (isset($context['elapsed'])) {
        return 'Query (' . $context['elapsed'] . ' ms):' . "\n" . $message;
    }
    return null;
});
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

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

Unknown

Total

1

Last Release

2110d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/53e5ee1dedd50f71e4aeeac2929f786cdfb400359d4776e6cd806388d0d5df2c?d=identicon)[vjik](/maintainers/vjik)

---

Top Contributors

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

---

Tags

psrpsr-3loggeryii2extension

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vjik-yii2-psr-logger-proxy/health.svg)

```
[![Health](https://phpackages.com/badges/vjik-yii2-psr-logger-proxy/health.svg)](https://phpackages.com/packages/vjik-yii2-psr-logger-proxy)
```

###  Alternatives

[apix/log

Minimalist, thin and fast PSR-3 compliant (multi-bucket) logger.

511.0M18](/packages/apix-log)[samdark/yii2-psr-log-target

Yii 2 log target which uses PSR-3 compatible logger

841.8M10](/packages/samdark-yii2-psr-log-target)[lav45/yii2-activity-logger

Tools to store user activity log for Yii2

3456.3k](/packages/lav45-yii2-activity-logger)[markrogoyski/simplelog-php

Powerful PSR-3 logging. So easy, it's simple.

2818.1k4](/packages/markrogoyski-simplelog-php)

PHPackages © 2026

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