PHPackages                             monsterhunter/yii2-log - 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. monsterhunter/yii2-log

ActiveLibrary

monsterhunter/yii2-log
======================

yii2-log

0.1.4(7y ago)14.9k1MITPHP

Since Jul 22Pushed 7y ago1 watchersCompare

[ Source](https://github.com/monster-hunter/yii2-log)[ Packagist](https://packagist.org/packages/monsterhunter/yii2-log)[ RSS](/packages/monsterhunter-yii2-log/feed)WikiDiscussions master Synced 3d ago

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

[![Latest Stable Version](https://camo.githubusercontent.com/6dcbc051bccc208a4f9ec9e33091c71977b91bafd656583c9445b7a08e74495b/68747470733a2f2f706f7365722e707567782e6f72672f6d6f6e7374657268756e7465722f796969322d6c6f672f762f737461626c65)](https://packagist.org/packages/monsterhunter/yii2-log)[![Total Downloads](https://camo.githubusercontent.com/5f89f17d1114f0993644aad5c487d4e66e2eda683bfe9b245013334aa9c03f40/68747470733a2f2f706f7365722e707567782e6f72672f6d6f6e7374657268756e7465722f796969322d6c6f672f646f776e6c6f616473)](https://packagist.org/packages/monsterhunter/yii2-log)[![License](https://camo.githubusercontent.com/8e68de261dd13f4e21ed89ae7cdb0d6b431ba7525773a0e80567fab79a9dad98/68747470733a2f2f706f7365722e707567782e6f72672f6d6f6e7374657268756e7465722f796969322d6c6f672f6c6963656e7365)](https://packagist.org/packages/monsterhunter/yii2-log)[![StyleCI](https://camo.githubusercontent.com/9b3c6cc13d34b6b655ce40cba4e8928ec3fd9bdb254ce142b061d703ca425efa/68747470733a2f2f7374796c6563692e696f2f7265706f732f39373930313131322f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/97901112)[![Build Status](https://camo.githubusercontent.com/fd3d69daf2c049775d06b395344408810f835788677c7f87e7fb99d4d0a1775f/68747470733a2f2f7472617669732d63692e6f72672f6d6f6e737465722d68756e7465722f796969322d6c6f672e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/monster-hunter/yii2-log)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/f1b975a163dcbda8741ad9c977c998cbaa352ff42fbb1e8b1507b414f73f79d9/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d6f6e737465722d68756e7465722f796969322d6c6f672f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/monster-hunter/yii2-log/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/64119b114a693e3311a485d7e8a494d39ca53064271101a976a64529a287dc64/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d6f6e737465722d68756e7465722f796969322d6c6f672f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/monster-hunter/yii2-log/?branch=master)[![Build Status](https://camo.githubusercontent.com/c4a20978e810b46016a454db62a8a73250fb9e7ded87a27f377a4259304a70ca/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d6f6e737465722d68756e7465722f796969322d6c6f672f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/monster-hunter/yii2-log/build-status/master)

Yii2 Log Module
===============

[](#yii2-log-module)

Run migrations
--------------

[](#run-migrations)

```
  php yii migrate --migrationPath=@yii/log/migrations/
```

Config backend module
---------------------

[](#config-backend-module)

```
'modules'=> [
    'log' => [
        'class' => 'monsterhunter\yii2\log\Module',
        //'layout' =>'@app/views/layouts/main'  //custom layout  
    ]
]
```

Config log compoennt
--------------------

[](#config-log-compoennt)

```
'components' => [
    'log' => [
        'traceLevel' => YII_DEBUG ? 3 : 0,
        'targets' => [
            [
                'class' => 'yii\log\DbTarget',
                'levels' => ['error', 'warning'],
                'except' => ['yii\web\HttpException:404'],
                'prefix' => function () {
                    $url = !Yii::$app->request->isConsoleRequest ? Yii::$app->request->getUrl() : null;
                    return sprintf('[%s][%s]', Yii::$app->id, $url);
                },
                'logVars' => [],
                'logTable' => '{{%system_log}}'
            ],
        ],
    ],
]
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 58.6% 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 ~166 days

Total

4

Last Release

2718d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/be5f01b134b4ecf2631be57537c2d9861ea07826176126725c996be23cdce835?d=identicon)[monster-hunter](/maintainers/monster-hunter)

---

Top Contributors

[![monster-hunter](https://avatars.githubusercontent.com/u/7071275?v=4)](https://github.com/monster-hunter "monster-hunter (17 commits)")[![zacksleo](https://avatars.githubusercontent.com/u/3369169?v=4)](https://github.com/zacksleo "zacksleo (11 commits)")[![withubmoa](https://avatars.githubusercontent.com/u/4962678?v=4)](https://github.com/withubmoa "withubmoa (1 commits)")

---

Tags

yii2-log

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/monsterhunter-yii2-log/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)

PHPackages © 2026

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