kabbouchi/laravel-logger-discord-channel
Laravel Logger - Discord Channel
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
Related Packages
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v0.4.0 | ^7.2.5 | ~7.0| | MIT | |
| v0.3.0 | >=7.1.0 | ~5.6| | MIT | |
| v0.2.0 | >=7.1.0 | ~5.6| | MIT | |
| v0.1.0 | >=7.1.0 | ~5.6| | MIT |