localheinz / http-log
此包已被弃用,不再维护。没有推荐替代包。
提供用于分析 HTTP 访问日志文件的控制台应用程序。
dev-master
2018-07-23 06:17 UTC
Requires
- php: ^7.2
- fzaninotto/faker: ^1.8.0
- kassner/log-parser: ^1.4.0
- localheinz/clock: ^1.0.0
- react/event-loop: ~0.4.3
- react/filesystem: ~0.1.0
- react/stream: ~0.4.6
- symfony/console: ^4.1.1
Requires (Dev)
- infection/infection: ~0.9.0
- localheinz/php-cs-fixer-config: ~1.14.1
- localheinz/test-util: ~0.7.0
- phpstan/phpstan: ~0.10.1
- phpstan/phpstan-strict-rules: ~0.10.0
- phpunit/phpunit: ^7.2.7
This package is auto-updated.
Last update: 2020-02-05 08:59:34 UTC
README
安装
运行
$ composer global require localheinz/http-log
用法
运行
$ dashboard <path> --alert-threshold=<alert-threshold> --refresh-interval=<refresh-interval>
来渲染仪表板。
参数
path
(可选,默认为/var/log/access.log
),HTTP 访问日志文件的路径
选项
alert-threshold
(可选,默认为10
),每秒请求次数(整数),超过该次数时触发警报refresh-interval
(可选,默认为10
),秒数(整数),在此之后仪表板将被刷新
演示
克隆此仓库。
$ git clone git@github.com:localheinz/http-log.git
运行
$ cd http-log
$ composer install
然后运行
$ php demo/write.php
在同一目录中打开一个独立的终端并运行
$ bin/dashboard
贡献
请查看 CONTRIBUTING.md
。
行为准则
请查看 CODE_OF_CONDUCT.md
。