cyntelli/yii2-log-fluentd
最新稳定版本:0.1.1
Composer 安装命令:
composer require cyntelli/yii2-log-fluentd
包简介
Logging with Fluentd for Yii2
README 文档
README
Logging with Fluentd for Yii2.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require "cyntelli/yii2-log-fluentd" "*"
or add
"cyntelli/yii2-log-fluentd" : "*"
to the require section of your application's composer.json file.
Usage
Add Fluentd target to your log component config:
<?php return [ ... 'components' => [ 'log' => [ 'traceLevel' => YII_DEBUG ? 3 : 0, // 'flushInterval' => 1, 'targets' => [ 'fluentdTarget' => [ 'class' => 'cyntelli\log\FluentdTarget', 'levels' => ['error', 'warning'], // Log levels // 'exportInterval' => 1, 'host' => 'host', // Fluentd host 'port' => '24224', // Fluentd port 'options' => [], // Options for Fluentd client 'tag' => 'app' // Tag ] ], ], ], ... ];
统计信息
- 总下载量: 5.4k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-05-18