From 391d3e02909d01bc1958018d1e5d85f63acb7367 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Thu, 12 Jul 2018 13:42:59 +0200 Subject: [PATCH] Mention how to inject a specific Monolog service --- logging/channels_handlers.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/logging/channels_handlers.rst b/logging/channels_handlers.rst index 48a11f405be..76ed1ee6efa 100644 --- a/logging/channels_handlers.rst +++ b/logging/channels_handlers.rst @@ -169,5 +169,7 @@ You can also configure additional channels without the need to tag your services ), )); -With this, you can now send log messages to the ``foo`` channel by using -the automatically registered logger service ``monolog.logger.foo``. +Symfony automatically registers one service per channel (in this example, the +channel ``foo`` creates a service called ``monolog.logger.foo``). In order to +inject this service into others, you must update the service configuration to +:ref:`choose the specific service to inject `.