= new Monolog\Logger('name');
$handler = new DiscordHandler\DiscordHandler('https://discordapp.com/api/webhooks/xxx/yyy', 'name', 'subname', 'DEBUG');
$handler->getConfig()
->setMultiMsg(true)
->setMaxMessageLength(2000) // at least 50 characters
->setDatetimeFormat('Y/m/d H:i')
->setTemplate("{datetime} {name}: {message}");
// or you can create another Config instance and replace it:
$otherConfig = new DiscordHandler\Config();
$otherConfig->setWebHooks([
'https://discordapp.com/api/webhooks/xxx/yyy',
'https://discordapp.com/api/webhooks/xxx/yyy'
]);
$handler->setConfig($otherConfig);
$log->pushHandler($handler);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.