You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #11328 Adds documentation for monolog processors. (dbrumann)
This PR was merged into the 3.4 branch.
Discussion
----------
Adds documentation for monolog processors.
Adds both a short description for existing processors as well as a note for the newly added TokenProcessor added in 3.4. I tried not to interfere with #10244 as this introduces documentation for more processors added in 4.3, so that PR hopefully can build on this one.
Replaces #8156
EUFOSSA
Commits
-------
67f8c2c Adds documentation for monolog processors.
Copy file name to clipboardExpand all lines: logging/processors.rst
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -160,6 +160,16 @@ If you use several handlers, you can also register a processor at the
160
160
handler level or at the channel level instead of registering it globally
161
161
(see the following sections).
162
162
163
+
Symfony's MonologBridge provides processors that can be registered inside your application.
164
+
165
+
* :class:`Symfony\\Bridge\\Monolog\\Processor\\DebugProcessor` adds additional information useful for debugging like a timestamp or an error message to the record.
166
+
* :class:`Symfony\\Bridge\\Monolog\\Processor\\TokenProcessor` adds information from the current user's token to the record namely username, roles and whether the user is authenticated.
167
+
* :class:`Symfony\\Bridge\\Monolog\\Processor\\WebProcessor` overrides data from the request using the data inside Symfony's request object.
168
+
169
+
.. versionadded:: 3.4
170
+
171
+
The :class:`Symfony\\Bridge\\Monolog\\Processor\\TokenProcessor` class was added in Symfony 3.4.
0 commit comments