lancoid/yii2-log-viewer

Yii2 log viewer

Installs: 10

Dependents: 0

Suggesters: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

dev-master 2019-02-15 16:08 UTC

README

Yii2 log viewer

Installation

Usage

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

return [
    'bootstrap' => ['log-viewer'],
    'modules' => [
        'log-viewer' => [
            'class' => 'lancoid\yii2LogViewer\Module',
            'aliases' => [
                'Api Errors' => '@api/runtime/logs/app.log',
                'Console Errors' => '@console/runtime/logs/app.log',
                'Backend Errors' => '@backend/runtime/logs/app.log',
                'Frontend Errors' => '@frontend/runtime/logs/app.log',
            ],
            'lang' => 'en',
            'accessRoles' => ['admin'],
            'moduleUrl' => 'admin/log-viewer',
            'canDelete' => true,
        ],
    ],
];

You can then access Log Reader using the following URL:

http://localhost/path/to/index.php?r=log-viewer

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

http://localhost/log-viewer