Skip to content

Commit f72403a

Browse files
committed
minor #17213 [Logger] declare missing foo_bar logger (alexislefebvre)
This PR was merged into the 5.4 branch. Discussion ---------- [Logger] declare missing foo_bar logger `foo_bar` is never defined there: https://symfony.com/doc/5.4/logging/channels_handlers.html#how-to-autowire-logger-channels Commits ------- ff84f9d declare the foo_bar logger
2 parents 23d3a25 + ff84f9d commit f72403a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

logging/channels_handlers.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ You can also configure additional channels without the need to tag your services
137137
138138
# config/packages/prod/monolog.yaml
139139
monolog:
140-
channels: ['foo', 'bar']
140+
channels: ['foo', 'bar', 'foo_bar']
141141
142142
.. code-block:: xml
143143
@@ -153,6 +153,7 @@ You can also configure additional channels without the need to tag your services
153153
<monolog:config>
154154
<monolog:channel>foo</monolog:channel>
155155
<monolog:channel>bar</monolog:channel>
156+
<monolog:channel>foo_bar</monolog:channel>
156157
</monolog:config>
157158
</container>
158159
@@ -162,7 +163,7 @@ You can also configure additional channels without the need to tag your services
162163
use Symfony\Config\MonologConfig;
163164
164165
return static function (MonologConfig $monolog) {
165-
$monolog->channels(['foo', 'bar']);
166+
$monolog->channels(['foo', 'bar', 'foo_bar']);
166167
};
167168
168169
Symfony automatically registers one service per channel (in this example, the

0 commit comments

Comments
 (0)