Yii2 Log Reader ¶
Yii2 log reader
this project is extend from zhuravljov/yii2-logreader, and Add more operation like
downloadand so on.
historycan load file that Yii2 FileTarget rotated.
The preferred way to install this extension is through composer.
php composer.phar require --prefer-dist kriss/yii2-log-reader "2.*"
to the require section of your
Once the extension is installed, simply modify your application configuration as follows:
return [ 'bootstrap' => ['log-reader'], 'modules' => [ 'log-reader' => [ 'class' => 'kriss\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:
or if you have enabled pretty URLs, you may use the following URL: