jkaan/monolog-splunk-time-processor
Composer 安装命令:
composer require jkaan/monolog-splunk-time-processor
包简介
README 文档
README
Install
$ composer require "jkaan/monolog-splunk-time-processor"
Usage
The example highlights using this processor with Monolog.
$monolog->addProcessor(new SplunkTimeProcessor());
All records that you send through Monolog will have a time key added to record.
This time key contains the current date in ISO8601 format with milliseconds accuracy.
Why?
When logging JSON data to Splunk, by default, it separates log events based on time.
If you don't include a time key as the first key multiple log events could possibly be categorised as one row in Splunk.
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-08-01