thtmorais/yii2-log-discord-target
最新稳定版本:1.0
Composer 安装命令:
composer require thtmorais/yii2-log-discord-target
包简介
Discord log target for Yii2
README 文档
README
This is the PHP Yii2 plugin for sending log of a yii application through the Discord WebHook API.
Important
You should avoid to use this target on a frequent events because of restriction in 30 messages per 60 seconds for the web-hooks.
Installation
Execute following command in shell:
composer require thtmorais/yii2-log-discord-target
Or add following in your composer.json require section, and run composer install in your shell
"thtmorais/yii2-log-discord-target": "*"
Configuration and usage
Add something as following in your yii config into the components section
'log' => [
'class' => '\thtmorais\log\DiscordTarget',
'url' => 'WEBHOOK_URL', // Your WebHook URL
//'pattern' => "{category}: {level}\n{text}", // Optionally you can override default message pattern
]
More info about log targets may be found here
统计信息
- 总下载量: 6.99k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-08-20