iamgold/yii2fluentd
Composer 安装命令:
composer require iamgold/yii2fluentd
包简介
This is a lightweight client library of fluentd
README 文档
README
This is a lightweight client library of fluentd. It be a component in Yii2.
Config setting
Injected the code belows into config file of web.php or console.php
'fluentd' => [ 'class' => 'iamgold\yii2fluentd\Fluentd', 'endpoint' => [endpoint of fluentd http server] ]
Usage
Yii::$app->fluentd->send($tag, $params);
Methods
/**
* send message
*
* @param string $tag
* @param array $params
* @return ResponseInterface
*/
public function send(string $tag, array $params)
ResponseInterface Methods
/** * is success * * @return bool */ public function isSuccess(); /** * get status code * * @return int */ public function getStatusCode(); /** * get error message * * @return string */ public function getErrorMessage();
统计信息
- 总下载量: 152
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2018-03-28