File tree 1 file changed +3
-2
lines changed
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
137
137
138
138
# config/packages/prod/monolog.yaml
139
139
monolog :
140
- channels : ['foo', 'bar']
140
+ channels : ['foo', 'bar', 'foo_bar' ]
141
141
142
142
.. code-block :: xml
143
143
@@ -153,6 +153,7 @@ You can also configure additional channels without the need to tag your services
153
153
<monolog : config >
154
154
<monolog : channel >foo</monolog : channel >
155
155
<monolog : channel >bar</monolog : channel >
156
+ <monolog : channel >foo_bar</monolog : channel >
156
157
</monolog : config >
157
158
</container >
158
159
@@ -162,7 +163,7 @@ You can also configure additional channels without the need to tag your services
162
163
use Symfony\Config\MonologConfig;
163
164
164
165
return static function (MonologConfig $monolog) {
165
- $monolog->channels(['foo', 'bar']);
166
+ $monolog->channels(['foo', 'bar', 'foo_bar' ]);
166
167
};
167
168
168
169
Symfony automatically registers one service per channel (in this example, the
You can’t perform that action at this time.
0 commit comments