kabbouchi / laravel-logger-discord-channel
A Discord based Monolog driver for Laravel
Installs: 9 332
Dependents: 0
Suggesters: 0
Security: 0
Stars: 14
Watchers: 3
Forks: 10
Open Issues: 1
Requires
- php: ^7.2.5
- guzzlehttp/guzzle: ^7.0.1
- illuminate/contracts: ~7.0|~8.0
- illuminate/queue: ~7.0|~8.0
- illuminate/support: ~7.0|~8.0
- monolog/monolog: ~1.12|^2.0
This package is auto-updated.
Last update: 2024-11-09 15:50:18 UTC
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