symfony/monolog-bridge
Symfony Monolog Bridge integrates the Monolog logging library with Symfony components, providing handlers and processors for console, HTTP kernel, security, and mailer so you can route framework logs into Monolog channels cleanly.
v5.4.54 is a security release containing a terminal-escaping fix: “Escape context strings written to the terminal” (#65692). This directly affects any logging path that renders Monolog context to a terminal or terminal-like consumer—common in Laravel via Artisan commands, queue workers, scheduler output, custom php://stderr channels, and CLI-oriented log viewers.Processor interfaces remain useful for request IDs, memory usage, and trace context.ErrorLogger remains an option, but still carries DI and conflict risk.v8.1.0-BETA3, but the new security release is on the 5.4 branch. These are different support lines with different Monolog constraints. The 5.4 bridge targets Monolog 1.x/2.x, while modern Laravel (9/10+) typically uses Monolog 3.x. Do not downgrade Monolog to consume a 5.4 patch.DependencyInjection; manual binding or facade wrappers are still required for full integration.>=5.4.54 is low effort if your application is on the 5.4 line and Monolog 1.x/2.x.>=5.4.54 immediately.ErrorLogger vs Laravel’s default error handler / Whoops / Debugbar.Logger and Laravel Log.#65692 fix backported?php://stderr, console output, or terminal-rendering formatters? Are any context values derived from user input?>=5.4.54? Does our Monolog version match the bridge line?monolog/monolog + symfony/monolog-bridge, configured through config/logging.php.symfony/monolog-bridge:5.4.x fits Monolog 1.x/2.x. Pin >=5.4.54 on that line.StreamHandler to stderr/stdout, console formatters, and any log viewer that interprets ANSI sequences.ErrorLogger, still higher risk and not required for this security fix.symfony/monolog-bridge and Monolog versions.>=5.4.54.5.4.54 is a patch release; no breaking changes are stated.composer audit and dependency alerts to CI.#65692 fix is present in the 8.x beta line if that is deployed.8.1.0-BETA3 without confirming the security backport leaves an unknown exposure window.How can I help you explore Laravel packages today?