localheinz/http-log

此包已被弃用,不再维护。没有推荐替代包。

提供用于分析 HTTP 访问日志文件的控制台应用程序。

dev-master 2018-07-23 06:17 UTC

This package is auto-updated.

Last update: 2020-02-05 08:59:34 UTC


README

Build Status codecov Latest Stable Version Total Downloads

安装

运行

$ 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