dqneo/fluent-simplelogger
最新稳定版本:1.0.0
Composer 安装命令:
composer require dqneo/fluent-simplelogger
包简介
a simple fluent logger
README 文档
README
a PHP library to record events to fluentd
Requirements
- PHP 5.4 or higher
- fluentd v0.9.20 or higher
Installation
You can install it by composer.
composer require dqneo/fluent-simplelogger
or create composer.json and exec `composer install'
{
"require": {
"dqneo/fluent-simplelogger": "0.0.4"
}
}
Usage
<?php
require_once __DIR__ . '/vendor/autoload.php';
use DQNEO\Fluent\Logger;
# If you want to connect by TCP
$logger = new Logger("localhost","24224");
# or If you want to connect by Unix Domain Socket
$logger = new Logger("unix:///var/run/td-agent/td-agent.sock");
$logger->post("debug.test", ["hello"=>"world"]);
Restrictions
- Buffering and re-send support
PHP does not have threads. So, I strongaly recommend you use fluentd as a local fluent proxy.
apache2(mod_php)
fluent-logger-php
`-----proxy-fluentd
`------aggregator fluentd
License
Apache License, Version 2.0
Original from https://github.com/fluent/fluent-logger-php
Contributors
- Daniele Alessandri
- Hiro Yoshikawa
- Kazuki Ohta
- Shuhei Tanuma
- Sotaro KARASAWA
- edy
- kiyoto
- sasezaki
- satokoma
- DQNEO
统计信息
- 总下载量: 794
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache
- 更新时间: 2015-04-25