You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feature #51284 [FrameworkBundle][HttpKernel][MonologBridge] Revisit wiring of debug loggers (nicolas-grekas)
This PR was merged into the 6.4 branch.
Discussion
----------
[FrameworkBundle][HttpKernel][MonologBridge] Revisit wiring of debug loggers
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | no
| New feature? | yes
| Deprecations? | yes
| Tickets | -
| License | MIT
| Doc PR | -
Replaces #51229
Implements the suggestions from `@stof` and `@Seldaek` in #51229 (comment)
It turns our we had almost everything available. This is mostly a matter of wiring.
* Deprecate class `Symfony\Bridge\Monolog\Logger`
* Deprecate `AddDebugLogProcessorPass::configureLogger()`
* Add `DebugLoggerConfigurator` to HttpKernel, which wires `DebugProcessor` when desired
Bonus:
* Add argument `$debug` to HttpKernel's `Logger`
* Deprecate `EnableLoggerDebugModePass` in favor of the previous
Commits
-------
8a6a410 [HttpKernel][MonologBridge][FrameworkBundle] Revisit wiring of debug loggers
trigger_deprecation('symfony/framework-bundle', '6.4', 'The "%s()" method is deprecated, use HttpKernel\'s DebugLoggerConfigurator instead.', __METHOD__);
Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Monolog/Logger.php
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -11,14 +11,16 @@
11
11
12
12
namespaceSymfony\Bridge\Monolog;
13
13
14
+
trigger_deprecation('symfony/monolog-bridge', '6.4', 'The "%s" class is deprecated, use HttpKernel\'s DebugLoggerConfigurator instead.', Logger::class);
* @deprecated since Symfony 6.4, use HttpKernel's DebugLoggerConfigurator instead
41
+
*
41
42
* @return void
42
43
*/
43
44
publicstaticfunctionconfigureLogger(mixed$logger)
44
45
{
46
+
trigger_deprecation('symfony/framework-bundle', '6.4', 'The "%s()" method is deprecated, use HttpKernel\'s DebugLoggerConfigurator instead.', __METHOD__);
trigger_deprecation('symfony/framework-bundle', '6.4', 'The "%s" class is deprecated, use argument $debug of HttpKernel\'s Logger instead.', EnableLoggerDebugModePass::class);
0 commit comments