File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments