2017 © Pedro Peláez
 

library fluent-accesslog

fluent accesslog

image

aoyagikouhei/fluent-accesslog

fluent accesslog

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

fluent-accesslog

This is a access logger for fluentd. This access log contain with a part of $_REQUEST AND $_SERVER., (*1)

Installation

Add "aoyagikouhei/fluent-accesslog" to your composer.json file:, (*2)

``` json { "require": { "aoyagikouhei/fluent-accesslog": "0.0.*" } }, (*3)


And install using composer: ``` bash $ php composer.phar install

Use

``` php $log = new \Fluent\Accesslog(array('host' => 'localhost')); $log->add(); $log->add(array('param1' => 'abc')); $log->add(array('param1' => 'abc'), 'prefix', 'postfix');, (*4)


Options ------- host : host name, default 'localhost' port : port, default '24224' tag : fluent tag name, default 'accesslog' tag_with_date : postfix date for tag by DateTime format, default none error_handler : when call error, default stderr mask : $_REQUEST masking key ary mask_value : use making value remove : $_REQUEST removing key ary server : is hash. key is $_SERVER key. value is store key. Example ------------- ``` php $log = new \Fluent\Accesslog(array( 'tag' => 'mongo.accesslog' ,'tag_with_date' => 'Ym' ,'mask' => ['password'] ,'server' => ['REMOTE_ADDR' => 'i'] )); $log->add(array('id' => $_SESSION['member_id']));

ChangeLog

2013-04-20 0.0.1 first release, (*5)

The Versions

02/08 2013

dev-master

9999999-dev https://github.com/aoyagikouhei/fluent-accesslog

fluent accesslog

  Sources   Download

MIT

The Requires

 

The Development Requires

log fluent

02/08 2013

0.0.2

0.0.2.0 https://github.com/aoyagikouhei/fluent-accesslog

fluent accesslog

  Sources   Download

MIT

The Requires

 

The Development Requires

log fluent

20/04 2013

0.0.1

0.0.1.0 https://github.com/aoyagikouhei/fluent-accesslog

fluent accesslog

  Sources   Download

MIT

The Requires

 

The Development Requires

log fluent