From 3d01373f664c97ecd52ce11d88fdd10fcc3217af Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Sun, 11 Oct 2020 13:11:00 +0200 Subject: [PATCH] [Monolog] Mention the SwitchUserTokenProcessor --- logging/processors.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/logging/processors.rst b/logging/processors.rst index e8ecf96593b..605c571b244 100644 --- a/logging/processors.rst +++ b/logging/processors.rst @@ -171,6 +171,14 @@ Symfony's MonologBridge provides processors that can be registered inside your a Adds information from the current user's token to the record namely username, roles and whether the user is authenticated. +:class:`Symfony\\Bridge\\Monolog\\Processor\\SwitchUserTokenProcessor` + Adds information about the user who is impersonating the logged in user, + namely username, roles and whether the user is authenticated. + + .. versionadded:: 5.2 + + The ``SwitchUserTokenProcessor`` was introduced in Symfony 5.2. + :class:`Symfony\\Bridge\\Monolog\\Processor\\WebProcessor` Overrides data from the request using the data inside Symfony's request object.