定制 pulse00/monolog-parser 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

pulse00/monolog-parser

最新稳定版本:0.0.3

Composer 安装命令:

composer require pulse00/monolog-parser

包简介

A parser for monolog log entries

README 文档

README

Build Status Scrutinizer Code Quality

Latest Stable Version Total Downloads Latest Unstable Version License

A simple library for parsing monolog logfiles.

Installation

You can install the library using composer by adding pulse00/monolog-parser to your composer.json.

Usage

require_once 'path/to/vendor/autoload.php';
  
use Dubture\Monolog\Reader\LogReader;
    
$logFile = '/path/to/some/monolog.log';
$reader = new LogReader($logFile);
   
foreach ($reader as $log) {
    echo sprintf("The log entry was written at %s. \n", $log['date']->format('Y-m-d h:i:s'));
}
    
$lastLine = $reader[count($reader)-1];
echo sprintf("The last log entry was written at %s. \n", $lastLine['date']->format('Y-m-d h:i:s'));

统计信息

  • 总下载量: 319.94k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 46
  • 点击次数: 1
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 45
  • Watchers: 3
  • Forks: 32
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-03-16