Download the PHP package thedomeffm/monolog-discord-handler-bundle without Composer
On this page you can find all versions of the php package thedomeffm/monolog-discord-handler-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download thedomeffm/monolog-discord-handler-bundle
More information about thedomeffm/monolog-discord-handler-bundle
Files in thedomeffm/monolog-discord-handler-bundle
Package monolog-discord-handler-bundle
Short Description Monolog handler to push your logs to discord via webhook
License MIT
Homepage https://github.com/thedomeffm/MonologDiscordHandlerBundle
Informations about the package monolog-discord-handler-bundle
Monolog Discord Handler
Adds a handler to monolog which can post your logs directly via discord webhook to your discord server channel.
[!NOTE] Discord has a character limit of 2000 (or 4000 when you have nitro). The message will get truncated when needed.
Installation
composer require thedomeffm/monolog-discord-handler-bundle
Configure the bundle
I've not added a recipe (or whatever I need to create :shrug:), so you need to create the config by yourself.
Minimal
Maximal
[!NOTE] Have in mind that json_pretty_print makes the message longer, and you'll reach the discord char limit easier!
Configure monolog
Add the "service" handler
Here is an example how a production config could look like:
Override the message content
Unhappy with my opinionated message design? Then decorate the factory. You can pass strings or the Text class into the Discord message.
All versions of monolog-discord-handler-bundle with dependencies
ext-curl Version *
monolog/monolog Version ^3.0
symfony/config Version ^5.4|^6.0|^7.0
symfony/dependency-injection Version ^5.4|^6.0|^7.0
symfony/http-kernel Version ^5.4|^6.0|^7.0