sylletka/yii2-log

This extension provides pages to browse the logs stored in database

Installs: 64

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 2

Open Issues: 0

Type:yii2-extension

dev-master 2016-09-24 12:58 UTC

This package is not auto-updated.

Last update: 2024-04-13 17:13:39 UTC


README

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 and to the reference documentation about the class DbTarget to get further information about logging and logging storage in database with Yii2.

  2. enable the module in config file

    <?php
        ......
        'modules' => [
            'log' => [
                'class' => 'sylletka\log\Module',
            ],
        ],
        ......

##Usage

point to /log to browse the Log entries