@@ -270,8 +270,8 @@ the ``monolog.processor`` tag:
270270 Registering Processors per Channel
271271----------------------------------
272272
273- You can register a processor per channel using the ``channel `` option of
274- the ``monolog.processor `` tag:
273+ By default, processors are applied to all channels. Add the ``channel `` option
274+ to the ``monolog.processor `` tag to only apply a processor for the given channel :
275275
276276.. configuration-block ::
277277
@@ -281,7 +281,7 @@ the ``monolog.processor`` tag:
281281 services :
282282 App\Logger\SessionRequestProcessor :
283283 tags :
284- - { name: monolog.processor, channel: main }
284+ - { name: monolog.processor, channel: 'app' }
285285
286286 .. code-block :: xml
287287
@@ -297,7 +297,7 @@ the ``monolog.processor`` tag:
297297
298298 <services >
299299 <service id =" App\Logger\SessionRequestProcessor" >
300- <tag name =" monolog.processor" channel =" main " />
300+ <tag name =" monolog.processor" channel =" app " />
301301 </service >
302302 </services >
303303 </container >
@@ -309,7 +309,7 @@ the ``monolog.processor`` tag:
309309 // ...
310310 $container
311311 ->register(SessionRequestProcessor::class)
312- ->addTag('monolog.processor', ['channel' => 'main ']);
312+ ->addTag('monolog.processor', ['channel' => 'app ']);
313313
314314 .. _`Monolog` : https://github.com/Seldaek/monolog
315315.. _`built-in Monolog processors` : https://github.com/Seldaek/monolog/tree/main/src/Monolog/Processor
0 commit comments