Skip to content

Commit 3d01373

Browse files
committed
[Monolog] Mention the SwitchUserTokenProcessor
1 parent eb962cf commit 3d01373

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

logging/processors.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,14 @@ Symfony's MonologBridge provides processors that can be registered inside your a
171171
Adds information from the current user's token to the record namely
172172
username, roles and whether the user is authenticated.
173173

174+
:class:`Symfony\\Bridge\\Monolog\\Processor\\SwitchUserTokenProcessor`
175+
Adds information about the user who is impersonating the logged in user,
176+
namely username, roles and whether the user is authenticated.
177+
178+
.. versionadded:: 5.2
179+
180+
The ``SwitchUserTokenProcessor`` was introduced in Symfony 5.2.
181+
174182
:class:`Symfony\\Bridge\\Monolog\\Processor\\WebProcessor`
175183
Overrides data from the request using the data inside Symfony's request
176184
object.

0 commit comments

Comments
 (0)