File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -308,14 +308,14 @@ option of your handler to ``rotating_file``:
308
308
),
309
309
));
310
310
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 >`.
319
319
320
320
Adding extra Data to each Log (e.g. a unique request token)
321
321
-----------------------------------------------------------
You can’t perform that action at this time.
0 commit comments