m6web/monolog-extra-bundle
Symfony bundle that extends Monolog with extra handlers and processors, making it easier to route, format, and enrich application logs through standard bundle configuration. A practical add-on when built-in Monolog options need additional integrations without custom wiring.
Architecture fit
m6web/monolog-extra-bundle is a Symfony bundle, not a framework-agnostic library. Its value is delivered through Symfony's bundle bootstrapping, DI container tags (monolog.processor), and framework-coupled request/session/token-storage services.Log::withContext(), pushProcessor(), channel-level tap, custom formatters). The bundle's core capability — injecting request, session, user, and correlation identifiers into every record — is achievable in Laravel in roughly 30–60 lines of application code.Integration feasibility
symfony/framework-bundle, symfony/http-kernel, symfony/dependency-injection, and transitive Symfony components into a Laravel application that otherwise has no reason to carry them. That is a container-and-kernel collision, not a version-pin nuisance.Technical risk
Key questions
composer.json, not inferred?Stack fit
tap, or use Log::withContext() in middleware to attach request_id, user_id, route, tenant_id. This preserves the Monolog-only dependency surface and avoids booting Symfony components.bundles.php for the relevant environments only, and tag processors explicitly rather than relying on autoconfiguration.Migration path
acme/logging-context) with tests, so the behavior is owned rather than inherited.Compatibility
composer why-not check before any merge. Validate PHP constraint, Monolog major, and Symfony major simultaneously — the failure modes are version-triangulation errors that surface at container compile time, not install time.Sequencing
Maintenance
Support
Scaling
Failure modes
Ramp-up
How can I help you explore Laravel packages today?