ethercreative/yii2-slack-error-logger
Composer 安装命令:
composer create-project ethercreative/yii2-slack-error-logger
包简介
Send errors (5xx) to a slack channel
README 文档
README
Send errors (5xx) to a slack channel
Install
You can install the package using the Composer package manager. You can install it by running this command in your project root:
composer require ethercreative/yii2-slack-error-logger
Basic Usage
Add the class to your configuration file.
You will need to create an incoming webhook
// ... 'log' => [ // ... 'targets' => [ [ 'class' => 'ethercreative\log\Error', 'levels' => ['error'], 'webhook' => 'https://hooks.slack.com/...', 'name' => 'The name of your project', 'username' => 'The username for the user', 'channel' => '#thechannel', ], ], ], // ...
统计信息
- 总下载量: 5.27k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-03-10