klib/laravel-log-reader

A simple and beautiful laravel log reader

Downloads

23

Stars

0

Version

v1.0.11

简介

安装

  • composer require klib/laravel-log-reader

使用

  • 访问 /admin/log-reader 即可

JSON API [OPTIONAL]

  • If you want to make your won UI then this package also provides the JSON API for log files. You will get the API link here /admin/api/log-reader

  • Get JSON data by date

use Haruncpi\LaravelLogReader\LaravelLogReader;

return (new LaravelLogReader(['date' => '2020-01-27']))->get();

Config file [OPTIONAL]

  • If you want to change the route URL for viewing the logs then run the command for publishing laravel log reader configuration file.
php artisan vendor:publish --provider="Haruncpi\LaravelLogReader\ServiceProvider" --tag="config"Copy

Custom Middleware [OPTIONAL]

  • Laravel log reader >= v1.0.6 support custom middleware. So you can easily add more restriction to view your application logs. To use custom middleware, add middleware key into laravel-log-reader.php config file.
'middleware' => ['web','auth','your_middleware']

版本

v1.0.11

v1.0.10

  • 替换 https://cdn.bootcss.com/angular.js/1.6.7/angular.min.jshttp://cdn.static.runoob.com/libs/angular.js/1.4.6/angular.min.js ,因为某些原因无法访问。

v1.0.9

  • 替换 https://ajax.googleapis.com/ajax/libs/angularjs/1.5.6/angular.min.jshttps://cdn.bootcss.com/angular.js/1.6.7/angular.min.js ,因为某些原因无法访问。

v1.0.8

  • 修复日志文件没有倒序显示的BUG。

v1.0.7

  • 基础版本上新增读取多行日志信息
kami1983

Author

kami1983