Skip to content

Commit 7366b2d

Browse files
Renamed the channel to "app"
1 parent e016a91 commit 7366b2d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

reference/dic_tags.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ monolog.logger
651651
**Purpose**: To use a custom logging channel with Monolog
652652

653653
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
655655
channel when injecting the logger in a service.
656656

657657
.. configuration-block::
@@ -662,7 +662,7 @@ channel when injecting the logger in a service.
662662
AppBundle\Log\CustomLogger:
663663
arguments: ['@logger']
664664
tags:
665-
- { name: monolog.logger, channel: acme }
665+
- { name: monolog.logger, channel: app }
666666
667667
.. code-block:: xml
668668
@@ -675,7 +675,7 @@ channel when injecting the logger in a service.
675675
<services>
676676
<service id="AppBundle\Log\CustomLogger">
677677
<argument type="service" id="logger" />
678-
<tag name="monolog.logger" channel="acme" />
678+
<tag name="monolog.logger" channel="app" />
679679
</service>
680680
</services>
681681
</container>
@@ -687,7 +687,7 @@ channel when injecting the logger in a service.
687687
688688
$container->register(CustomLogger::class)
689689
->addArgument(new Reference('logger'))
690-
->addTag('monolog.logger', array('channel' => 'acme'));
690+
->addTag('monolog.logger', array('channel' => 'app'));
691691
692692
.. tip::
693693

0 commit comments

Comments
 (0)