File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -162,15 +162,15 @@ handler level or at the channel level instead of registering it globally
162
162
.. tip ::
163
163
164
164
.. versionadded :: 4.2
165
- Processors can be autoconfigured since Symfony 4.2.
166
-
167
- Processors implementing :class: ` Symfony \\ Bridge \\ Monolog \\ Processor \\ ProcessorInterface `
168
- can have their `` monolog.processor `` tag added for you by Symfony when autoconfiguration
169
- is enabled. In this situation, this means creating a processor class might be all you
170
- need do to to have it up and running. It also means enabling the
171
- :class: `Symfony\\ Bridge\\ Monolog\\ Processor\\ TokenProcessor ` or the
172
- :class: `Symfony\\ Bridge\\ Monolog\\ Processor\\ WebProcessor ` in your Flex-enabled app is a
173
- one-liner :
165
+ The autoconfiguration of Monolog processors was introduced in Symfony 4.2.
166
+
167
+ If you're using the :ref: ` default services.yaml configuration < service-container-services-load-example >`,
168
+ processors implementing :class: ` Symfony\\ Bridge \\ Monolog \\ Processor \\ ProcessorInterface `
169
+ are automatically registered as services and tagged with `` monolog. processor``,
170
+ so you can use them without adding any configuration. The same applies to the
171
+ built-in :class: `Symfony\\ Bridge\\ Monolog\\ Processor\\ TokenProcessor ` and
172
+ :class: `Symfony\\ Bridge\\ Monolog\\ Processor\\ WebProcessor ` processors, which
173
+ can be enabled as follows :
174
174
175
175
.. code-block :: yaml
176
176
You can’t perform that action at this time.
0 commit comments