lexor/laravel-logger-discord-channel

A Discord based Monolog driver for Laravel

dev-master 2018-09-16 18:29 UTC

README

A Discord based Monolog driver for Laravel

Install

composer require lexor/laravel-logger-discord-channel:dev-master

Usage

Add the new driver type in your config/logging.php configuration

'channels' => [
    'discord' => [
        'driver' => 'custom',
        'via' => Lexor\LoggerDiscordChannel\DiscordLogger::class,
        'webhook' => 'https://discordapp.com/api/webhooks/.....',
        'level' => 'DEBUG',
        'role_id' => null, // role to tag in the error
    ],
],