kabbouchi/laravel-logger-discord-channel
最新稳定版本:v0.4.0
Composer 安装命令:
composer require kabbouchi/laravel-logger-discord-channel
包简介
A Discord based Monolog driver for Laravel
README 文档
README
A Discord based Monolog driver for Laravel
Install
composer require kabbouchi/laravel-logger-discord-channel
Usage
Add the new driver type in your config/logging.php configuration
'channels' => [ 'discord' => [ 'driver' => 'custom', 'via' => KABBOUCHI\LoggerDiscordChannel\DiscordLogger::class, 'webhook' => 'https://discordapp.com/api/webhooks/.....', 'level' => 'DEBUG', 'role_id' => null, // role to tag in the error, 'environment' => 'production', // or ['production', 'staging', 'local'] ], ],
Note
You may need to clear cache after installation if you get laravel.EMERGENCY: Unable to create configured logger. ... Log [discord] is not defined. with
php artisan config:clear
统计信息
- 总下载量: 9.43k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 14
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-07-19