@@ -651,7 +651,7 @@ monolog.logger
651
651
**Purpose **: To use a custom logging channel with Monolog
652
652
653
653
Monolog allows you to share its handlers between several logging channels.
654
- The logger service uses the channel ``acme `` but you can change the
654
+ The logger service uses the channel ``app `` but you can change the
655
655
channel when injecting the logger in a service.
656
656
657
657
.. configuration-block ::
@@ -662,7 +662,7 @@ channel when injecting the logger in a service.
662
662
AppBundle\Log\CustomLogger :
663
663
arguments : ['@logger']
664
664
tags :
665
- - { name: monolog.logger, channel: acme }
665
+ - { name: monolog.logger, channel: app }
666
666
667
667
.. code-block :: xml
668
668
@@ -675,7 +675,7 @@ channel when injecting the logger in a service.
675
675
<services >
676
676
<service id =" AppBundle\Log\CustomLogger" >
677
677
<argument type =" service" id =" logger" />
678
- <tag name =" monolog.logger" channel =" acme " />
678
+ <tag name =" monolog.logger" channel =" app " />
679
679
</service >
680
680
</services >
681
681
</container >
@@ -687,7 +687,7 @@ channel when injecting the logger in a service.
687
687
688
688
$container->register(CustomLogger::class)
689
689
->addArgument(new Reference('logger'))
690
- ->addTag('monolog.logger', array('channel' => 'acme '));
690
+ ->addTag('monolog.logger', array('channel' => 'app '));
691
691
692
692
.. tip ::
693
693
0 commit comments