From e016a916efd66bf54c2b981d249332819f9994e5 Mon Sep 17 00:00:00 2001 From: Kevin Warrington Date: Thu, 3 Aug 2017 10:17:59 -0600 Subject: [PATCH 1/2] Update dic_tags.rst --- reference/dic_tags.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/dic_tags.rst b/reference/dic_tags.rst index 95c83300a96..a0a297fb485 100644 --- a/reference/dic_tags.rst +++ b/reference/dic_tags.rst @@ -651,7 +651,7 @@ monolog.logger **Purpose**: To use a custom logging channel with Monolog Monolog allows you to share its handlers between several logging channels. -The logger service uses the channel ``app`` but you can change the +The logger service uses the channel ``acme`` but you can change the channel when injecting the logger in a service. .. configuration-block:: From 7366b2d1ed570d397405c5f418b1add7065a2fba Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Fri, 5 Jan 2018 15:42:34 +0100 Subject: [PATCH 2/2] Renamed the channel to "app" --- reference/dic_tags.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reference/dic_tags.rst b/reference/dic_tags.rst index a0a297fb485..2737aba37bb 100644 --- a/reference/dic_tags.rst +++ b/reference/dic_tags.rst @@ -651,7 +651,7 @@ monolog.logger **Purpose**: To use a custom logging channel with Monolog Monolog allows you to share its handlers between several logging channels. -The logger service uses the channel ``acme`` but you can change the +The logger service uses the channel ``app`` but you can change the channel when injecting the logger in a service. .. configuration-block:: @@ -662,7 +662,7 @@ channel when injecting the logger in a service. AppBundle\Log\CustomLogger: arguments: ['@logger'] tags: - - { name: monolog.logger, channel: acme } + - { name: monolog.logger, channel: app } .. code-block:: xml @@ -675,7 +675,7 @@ channel when injecting the logger in a service. - + @@ -687,7 +687,7 @@ channel when injecting the logger in a service. $container->register(CustomLogger::class) ->addArgument(new Reference('logger')) - ->addTag('monolog.logger', array('channel' => 'acme')); + ->addTag('monolog.logger', array('channel' => 'app')); .. tip::