Skip to content

Commit 7551fa0

Browse files
committed
Merge branch '6.0' into 6.1
* 6.0: declare the foo_bar logger
2 parents ca7cba5 + d21417e commit 7551fa0

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)