objectified/logtailminutes
Composer 安装命令:
composer require objectified/logtailminutes
包简介
Log extraction utility
关键字:
README 文档
README
Dead simple, tiny utility to extract lines from log files based on time range. Usage:
$tail = new LogTailMinutes(
'/path/to/logfile', // log file to extract files from
'd/m/Y', // date format used in the log file, see php.net/date
10, // how many minutes to go back
'now', // time expression to start from, see php.net/strtotime
'/path/to/egrep' // path to egrep binary
);
// optionally, set a filter on the matching results (egrep compatible regex)
$tail->setFilterRegex('HTTP/1.1" (4|5)[0-9]{2}');
// get matched lines
$lines = $tail->getLines();
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-01-22