jeffersongoncalves/laravel-discord-logger
Send Laravel logs straight to Discord via webhooks. This package adds a ready-to-use Discord logging channel so errors and app events land in your server channels with clean, readable formatting.
Architecture fit
config/logging.php channel model rather than introducing a parallel logging path. That is the right integration seam: it composes with the stack driver alongside Slack, Sentry, and file channels.DISCORD_LOGGER_FALLBACK_CHANNEL=single), which is idiomatic and avoids inventing a bespoke error sink.Integration feasibility
composer require, one channel block, two or three env vars, and a Discord webhook URL from channel settings. A mid-level Laravel developer can wire this in under a day including verification.Technical risk
Key questions
Retry-After honored?DISCORD_LOGGER_FALLBACK_CHANNEL is unset or names a nonexistent channel?Stack fit
stack channel without disturbing current handlers.stack channel at error level and above initially, rather than as a standalone channel for all traffic. This bounds volume and gives the team a real signal-to-noise baseline before widening scope.Migration path
stack array. Keep that as the documented escape hatch.Compatibility
config/logging.php entries. Under config caching, this means env changes require config:cache in the deploy pipeline — a common source of "it works locally" incidents..env committed to a repo or surfaced in CI logs.Sequencing
DISCORD_LOGGER_FALLBACK_CHANNEL=single and deliberately trigger a 404 (delete a test webhook) to confirm the fallback path works and is redacted.error and above.warning.Maintenance
Support
Scaling
Failure modes
Ramp-up
How can I help you explore Laravel packages today?