8000
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 295e7da commit 071c7b6Copy full SHA for 071c7b6
logging/channels_handlers.rst
@@ -182,8 +182,10 @@ 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``. For example, to inject the service
186
-related to the ``app`` logger channel use this:
+``Psr\Log\LoggerInterface $<channel>Logger``. The ``<channel>`` must have been
+predefined in your monolog configuration.
187
+
188
+An example to inject the service related to the ``app`` logger channel use this:
189
190
.. code-block:: diff
191
0 commit comments