flynsarmy/slim-monolog
Monolog integration for the Slim PHP framework. Add PSR-3 logging to your Slim app with minimal setup, route messages through Monolog handlers, and get configurable, structured logging for requests, errors, and custom events.
Architecture fit
illuminate/log, which wraps Monolog directly and exposes channel drivers, handlers, and Log:: facades. Adding a Slim-to-Monolog adapter to a Laravel estate contributes nothing to the primary platform.$app->log / Slim\Log and needs its output normalized into a shared Monolog pipeline. It is a compatibility shim, not a platform capability.Slim\Logger interface (emergency…debug), which Slim 3 replaced with PSR-3 (LoggerInterface) and Slim 4 expects to be injected. It does not bridge modern Slim at all.composer.json risks an unresolvable Monolog constraint or forces a downgrade across the entire monorepo.Integration feasibility
composer.json, with the application built and deployed independently of the Laravel platform.LoggerInterface, JSON formatter, stdout/stderr transport, correlation IDs. Each runtime (Laravel, Slim, workers) supplies its own binding to that standard.Technical risk
Key questions
Logger directly and dropping $app->log usage in the legacy app? Likely a few days of mechanical refactor.Stack fit
stack driver, and stderr transport for containers. No action.Logger and adapt at the bootstrap boundary only.Migration path
$app->log->info(...) to an injected PSR-3 LoggerInterface. This is the actual exit ramp and is independent of the package.monolog/monolog configured directly (or the Slim 4 bridge if the service is upgraded) and delete the dependency.service, env, request_id, trace_id, severity mapping to RFC 5424.Compatibility
Sequencing
Maintenance
Support
Scaling
Failure modes
Ramp-up
How can I help you explore Laravel packages today?