A simple monolog handler for support Discord webhooks
- PHP >= 5.3
- Monolog >= 1.3
Easy install via composer. Still no idea what composer is? Inform yourself here.
composer require lefuturiste/monolog-discord-handler
Push this handler to your monlog instance:
<?php
require 'vendor/autoload.php';
$log = new Monolog\Logger('your name');
$log->pushHandler(new DiscordHandler\DiscordHandler([
'Discord Webhook url'
], 'name', 'subname', 'DEBUG'));
<?php
require 'vendor/autoload.php';
$log = new Monolog\Logger('your name');
$log->pushHandler(new DiscordHandler\DiscordHandler([
'Discord Webhook url 1',
'Discord Webhook url 2',
], 'name', 'subname', 'DEBUG'));