PHPackages                             sergebezborodov/elog2 - 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. sergebezborodov/elog2

ActiveLibrary

sergebezborodov/elog2
=====================

Logging for Yii Framework 2

06.7k1PHP

Since Mar 10Pushed 11y ago1 watchersCompare

[ Source](https://github.com/sergebezborodov/elog2)[ Packagist](https://packagist.org/packages/sergebezborodov/elog2)[ RSS](/packages/sergebezborodov-elog2/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Logger for Yii 2
================

[](#logger-for-yii-2)

Logger component for Yii Framework 2. Key features:

- extended logging to files, each file for different log types
- tunable logging levels
- ouput all logs to console for console application with colors
- easy to extend

Install
-------

[](#install)

Fast install:

```
'components' => array(
    'elog' => array(
        'class' => 'sergebezborodov\elogger\Elogger',
    )
)
```

All config params:

```
'components' => array(
    'elog' => array(
        'class' => 'sergebezborodov\elogger\Elogger',

        // addition log levels
        'levels' => array('warning', 'fail'), // also can be 'levels' => 'warning, fail'

        'handlers' => array(
            // file log
            array(
                'class' => 'sergebezborodov\elogger\handlers\File',
                // log message formater
                'formatter' => array(
                    'class' => 'sergebezborodov\elogger\formaters\Standart',
                    // date format
                    'dateFormat' => 'Y-m-d H:i:s',
                    // log message format
                    'messageFormat' => '{date} [{level}]{level-spaces} {from} {message}',
                ),

                // by default file log handler accept all messages from all levels
                // you can specify levels for this handler by array or coma separated string
                // also can set uniq levels that main component doesn't has
                // 'level' => array('trace', 'fullshit'),
                'levels' => '*',

                // default log file
                'defaultFile' => 'application',
                // log file extension (without dot)
                'extension' => 'log',
                // log file directory, by default runtime path
                'path' => 'application.runtime',
                // max log file size, if over file will be rotated
                'maxFileSize' => 1024,
                // max log files count
                'maxFiles' => 10,
                // new directory mode permission
                'directoryMode' => 0777,
                // new log file permission
                'fileMode' => 0640,
            ),

            // color console handler
            array(
                'class' => 'sergebezborodov\elogger\handlers\Console',
                // log message formatter
                'formatter' => array(
                    'class' => 'sergebezborodov\elogger\formaters\ConsoleColor',
                    // date format
                    'dateFormat' => 'Y-m-d H:i:s',
                    // log message format
                    'messageFormat' => '{date} [{level}]{level-spaces} {from} {message}',
                ),
                // by default file log handler accept all messages from all levels
                // you can specify levels for this handler by array or coma separated string
                // also can set uniq levels that main component doesn't has
                // 'level' => array('trace', 'fullshit'),
                'levels' => '*',
            ),
        ),
    ),
),
```

###  Health Score

26

—

LowBetter than 46% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0f9c50e3814ea1e0027759046509bb2d916b339d9e3f06a81d6e67021a649af0?d=identicon)[sergebezborodov](/maintainers/sergebezborodov)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/sergebezborodov-elog2/health.svg)

```
[![Health](https://phpackages.com/badges/sergebezborodov-elog2/health.svg)](https://phpackages.com/packages/sergebezborodov-elog2)
```

PHPackages © 2026

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