8000 Mention how to inject a specific Monolog service · symfony/symfony-docs@391d3e0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 391d3e0

Browse files
committed
Mention how to inject a specific Monolog service
1 parent 4509b50 commit 391d3e0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

logging/channels_handlers.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,5 +169,7 @@ You can also configure additional channels without the need to tag your services
169169
),
170170
));
171171
172-
With this, you can now send log messages to the ``foo`` channel by using
173-
the automatically registered logger service ``monolog.logger.foo``.
172+
Symfony automatically registers one service per channel (in this example, the
173+
channel ``foo`` creates a service called ``monolog.logger.foo``). In order to
174+
inject this service into others, you must update the service configuration to
175+
:ref:`choose the specific service to inject <services-wire-specific-service>`.

0 commit comments

Comments
 (0)
0