We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94950fe commit 060773eCopy full SHA for 060773e
logging/channels_handlers.rst
@@ -182,10 +182,11 @@ How to Autowire Logger Channels
182
183
Starting from `MonologBundle`_ 3.5 you can autowire different Monolog channels
184
by type-hinting your service arguments with the following syntax:
185
-``Psr\Log\LoggerInterface $<channel>Logger``. The ``<channel>`` must have been
186
-predefined in your Monolog configuration.
+``Psr\Log\LoggerInterface $<channel>Logger``. The ``<channel>`` must have been
+:ref:`predefined in your Monolog configuration <monolog-channels-config>`.
187
188
-An example to inject the service related to the ``app`` logger channel:
+For example to inject the service related to the ``app`` logger channel,
189
+change your constructor like this:
190
191
.. code-block:: diff
192
0 commit comments