定制 aoyagikouhei/fluent-accesslog 二次开发

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

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

aoyagikouhei/fluent-accesslog

Composer 安装命令:

composer require aoyagikouhei/fluent-accesslog

包简介

fluent accesslog

关键字:

README 文档

README

This is a access logger for fluentd. This access log contain with a part of $_REQUEST AND $_SERVER.

Installation

Add "aoyagikouhei/fluent-accesslog" to your composer.json file:

{
  "require": {
    "aoyagikouhei/fluent-accesslog": "0.0.*"
  }
}

And install using composer:

$ php composer.phar install

Use

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

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

$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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-04-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固