定制 dqneo/fluent-simplelogger 二次开发

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

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

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

Build Status

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

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Apache
  • 更新时间: 2015-04-25