8000 Mention how to inject a specific Monolog service by javiereguiluz · Pull Request #10049 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Mention how to inject a specific Monolog service #10049

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 13, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions logging/channels_handlers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 6B44 , you must update the service configuration to
:ref:`choose the specific service to inject <services-wire-specific-service>`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we rather link to the monolog.logger tag (https://symfony.com/doc/2.8/reference/dic_tags.html#dic-tags-monolog)?

0