2017 © Pedro Peláez
 

library laravel-logger-discord-channel

A Discord based Monolog driver for Laravel

image

kabbouchi/laravel-logger-discord-channel

A Discord based Monolog driver for Laravel

  • Friday, July 27, 2018
  • by KABBOUCHI
  • Repository
  • 1 Watchers
  • 3 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

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, (*1)

'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, (*2)

php artisan config:clear

The Versions

27/07 2018

dev-master

9999999-dev

A Discord based Monolog driver for Laravel

  Sources   Download

MIT

The Requires

 

by Georges KABBOUCHI

laravel logger discord