zhuravljov/yii2-logreader

Yii2 Log Reader

Installs: 24 626

Dependents: 1

Suggesters: 0

Security: 0

Stars: 35

Watchers: 3

Forks: 2

Open Issues: 0

Type:yii2-extension

1.1.3 2017-11-09 22:49 UTC

This package is auto-updated.

Last update: 2024-10-19 02:21:51 UTC


README

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist zhuravljov/yii2-logreader "*"

or add

"zhuravljov/yii2-logreader": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply modify your application configuration as follows:

return [
    'bootstrap' => ['logreader'],
    'modules' => [
        'logreader' => [
            'class' => 'zhuravljov\yii\logreader\Module',
            'aliases' => [
                'Frontend Errors' => '@frontend/runtime/logs/app.log',
                'Backend Errors' => '@backend/runtime/logs/app.log',
                'Console Errors' => '@console/runtime/logs/app.log',
            ],
        ],
    ],
];

You can then access Log Reader using the following URL:

http://localhost/path/to/index.php?r=logreader

or if you have enabled pretty URLs, you may use the following URL:

http://localhost/path/to/logreader