chronostep/chronoslack
最新稳定版本:v2.0.0
Composer 安装命令:
composer require chronostep/chronoslack
包简介
This is slack Logging notification.
README 文档
README
This package will be sent logging notification on slack.
Source
| URL | |
|---|---|
| Packagist | https://packagist.org/packages/chronostep/chronoslack |
| Github | https://github.com/ChronoDevs/chronoslack |
Installation Procedure
Install Composer Package
composer require chronostep/chronoslack
Configuration
You'll need to register the configuration in the environment. The file will be .env.
In this file you will need to provide the webhook url. I recommend reading Slack Incoming Webhooks for more information on how to setup the webhook.
LOG_SLACK_WEBHOOK_URL=
LOG_SLACK_NAME=
LOG_SLACK_LOG=
LOG_SLACK_CHANNEL=
Example Usage
$error = ['status' => 404, 'message' => 'Not found!']; SlackLog::error($error); // Use logging guard if not specify `LOG_SLACK_LOG` in the environment. if (SlackLog::isErrorEnabled()) { SlackLog::error($error); }
统计信息
- 总下载量: 109
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-01-11