lancoid / yii2-log-viewer
Yii2 log viewer
Package info
github.com/Lancoid/yii2-log-viewer
Type:yii2-extension
pkg:composer/lancoid/yii2-log-viewer
0.1.9
2019-02-18 03:08 UTC
Requires
- php: >=5.4.0
- ext-zip: *
- bower-asset/datatables: ~1.10.18
- yiisoft/yii2: *
- yiisoft/yii2-bootstrap: ~2.0.0
This package is auto-updated.
Last update: 2026-03-29 00:43:23 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, 'appLayout' => '@frontend/views/layouts/main', ], ], ];
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