lancoid / yii2-log-viewer
Yii2 log viewer
Installs: 331
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 1
Type:yii2-extension
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: 2024-03-29 03:20:10 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