haokaiyang/laravel-feishu-logging
Composer 安装命令:
composer require haokaiyang/laravel-feishu-logging
包简介
Send logs to Feishu group via Feishu Custom bot
README 文档
README
Send logs to Feishu group via Feishu Custom bot
Install
composer require haokaiyang/laravel-feishu-logging
Document: 机器人 | 如何在群聊中使用机器人?
Define feishu custom bot Token and set as environment parameters. Add to your environment file
token is a part of Feishu Webhook url
if your Webhook is (https://open.feishu.cn/open-apis/bot/hook/xxxxxxxxxxxxxxxxxxxxxxxxxxx)
token is 'xxxxxxxxxxxxxxxxxxxxxxxxxxx'
FEISHU_LOGGER_BOT_TOKEN=token
Add to config/logging.php file new channel: if you want to setting different feishu custom bot,you can define token into channel setting
'feishu' => [ 'driver' => 'custom', 'via' => Logger\FeishuLogger::class, 'level' => 'debug', 'token' => env('FEISHU_LOGGER_BOT_TOKEN', 'YOUR-CUSTOM-BOT-TOKEN'), ]
If your default log channel is a stack, you can add it to the stack channel like this
'stack' => [ 'driver' => 'stack', 'channels' => ['single', 'feishu'], ]
Or you can simply change the default log channel in the .env
LOG_CHANNEL=feishu
Publish config file
php artisan vendor:publish --provider "Logger\FeishuLoggerServiceProvider"
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-03-08