alexeevdv / yii2-log-slack
1.0.1
2018-02-18 09:21 UTC
Requires
- maknz/slack: ^1.7
- yiisoft/yii2: ^2.0
Requires (Dev)
This package is auto-updated.
Last update: 2024-09-20 22:43:17 UTC
README
将日志消息发送到Slack webhook。
安装
安装此扩展的首选方式是通过 composer。
运行以下命令之一:
$ php composer.phar require alexeevdv/yii2-log-slack "^1.0"
或者添加以下内容到你的 composer.json
文件的 require
部分:
"alexeevdv/yii2-log-slack": "^1.0"
配置
通过应用程序组件
//... 'components' => [ //... 'log' => [ //... 'targets' => [ //... [ 'class' => alexeevdv\log\SlackTarget::class, 'webhook' => 'https://your_webhook_link', // other optional params goes here ], //... ], //.. ], //... ], //...
支持的参数
有关支持参数的列表,请参阅 https://github.com/maknz/slack