PHPackages                             sylletka/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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. sylletka/yii2-log

ActiveYii2-extension[Logging &amp; Monitoring](/categories/logging)

sylletka/yii2-log
=================

This extension provides pages to browse the logs stored in database

0652PHP

Since Sep 24Pushed 9y ago1 watchersCompare

[ Source](https://github.com/sylletka/yii2-log)[ Packagist](https://packagist.org/packages/sylletka/yii2-log)[ RSS](/packages/sylletka-yii2-log/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-log
========

[](#yii2-log)

This module provides a simple way to view the log entries stored in database via yii\\log\\DbTarget

\##Install

1. configure at least one log target as a DbTarget

    ```
            ...
            'log' => [
                ...
                'targets' => [
                    [
                        'class' => 'yii\log\DbTarget',
                        'levels' => ['error', 'warning'],
                    ],
                ],
                ...
            ],
            ...
    ```

    Please refer to [The definitive guide about Yii 2, in the chapter about logging](http://www.yiiframework.com/doc-2.0/guide-runtime-logging.html) and to [the reference documentation about the class DbTarget](http://www.yiiframework.com/doc-2.0/yii-log-dbtarget.html) to get further information about logging and logging storage in database with Yii2.
2. enable the module in config file

    ```
