A Discord based Monolog driver for Laravel
kabbouchi/laravel-logger-discord-channel is a Laravel package for a discord based monolog driver for laravel.
It currently has 14 GitHub stars and 9.488 downloads on Packagist (latest version v0.4.0).
Install it with composer require kabbouchi/laravel-logger-discord-channel.
Discover more Laravel packages by kabbouchi
or browse all Laravel packages to compare alternatives.
Last updated
composer require kabbouchi/laravel-logger-discord-channel
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']
],
],
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