Download the PHP package bvtvd/hyperf-log-viewer without Composer
On this page you can find all versions of the php package bvtvd/hyperf-log-viewer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package hyperf-log-viewer
发布配置文件
该命令会发布一个配置文件log_viewer.php 到 config/autoload 下, 发布一个视图文件 log.blade.php 到 storage/view 下
在 config/routes 文件中自定义查看日志的访问路由, 如:
注意
- 该包需要安装 hyperf/view, 还需要 duncan3dc/blade 模板引擎提供支持, 慎用.
-
视图配置如下
- 需要将日志文件按日志进行分割
- 可以选择将程序运行异常输出到日志文件, 修改 app\Exception\Handler\AppExceptionHandler.php 文件如下:
All versions of hyperf-log-viewer with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.2
ext-swoole Version >=4.4
ext-swoole Version >=4.4
The package bvtvd/hyperf-log-viewer contains the following files
Loading the files please wait ....