8000 Proposed a minor reword · matthieu88160/symfony-docs@a500ff3 · GitHub
[go: up one dir, main page]

Skip to content

Commit a500ff3

Browse files
Proposed a minor reword
1 parent c8992e6 commit a500ff3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

logging.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -308,14 +308,14 @@ option of your handler to ``rotating_file``:
308308
),
309309
));
310310
311-
Injecting a Logger into a Service
312-
----------------------------------
313-
314-
To use a logger in your own service, inject it using Dependency Injection
315-
with ``@logger``. If you want to use a pre-configured logger which uses a
316-
specific channel (``app`` by default), use the ``monolog.logger`` tag with the
317-
``channel`` property. Look at the :ref:`Dependency Injection reference
318-
<dic_tags-monolog>` for more information and an example.
311+
Using a Logger inside a Service
312+
-------------------------------
313+
314+
To use a logger in your own services, add the ``@logger`` service as an argument
315+
of those services. If you want to use a pre-configured logger which uses a
316+
specific channel (``app`` by default), use the ``monolog.logger`` tag with the
317+
``channel`` property as explained in the
318+
:ref:`Dependency Injection reference <dic_tags-monolog>`.
319319

320320
Adding extra Data to each Log (e.g. a unique request token)
321321
-----------------------------------------------------------

0 commit comments

Comments
 (0)
0