From ff84f9dd05052d81c559ee6727559a08f14d64eb Mon Sep 17 00:00:00 2001 From: Alexis Lefebvre Date: Fri, 19 Aug 2022 18:30:29 +0200 Subject: [PATCH] declare the foo_bar logger --- logging/channels_handlers.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/logging/channels_handlers.rst b/logging/channels_handlers.rst index ae0567fd551..aa4a64dab69 100644 --- a/logging/channels_handlers.rst +++ b/logging/channels_handlers.rst @@ -137,7 +137,7 @@ You can also configure additional channels without the need to tag your services # config/packages/prod/monolog.yaml monolog: - channels: ['foo', 'bar'] + channels: ['foo', 'bar', 'foo_bar'] .. code-block:: xml @@ -153,6 +153,7 @@ You can also configure additional channels without the need to tag your services foo bar + foo_bar @@ -162,7 +163,7 @@ You can also configure additional channels without the need to tag your services use Symfony\Config\MonologConfig; return static function (MonologConfig $monolog) { - $monolog->channels(['foo', 'bar']); + $monolog->channels(['foo', 'bar', 'foo_bar']); }; Symfony automatically registers one service per channel (in this example, the