- apply the patch from the D458 differential revision
- in IDE:
- add the following code on top of the \UsersEventHandler::SetCustomQuery method in the core/units/users/users_event_handler.php file:
$log = $this->Application->log('test message (user grid)', 555); $log->addTrace(); $log->addRequestData(); $log->addSessionData(true); $log->setLogLevel(kLogger::LL_ERROR); $log->write();
- save changes
- in Admin Console:
- go to the User Management → Users section (that creates a System Log record, but it isn't visible in the Debugger)
- go to the Logs & Reports → System Log section
- confirm, that record, generated above, is present in the System Log
- open it for editing
- confirm, that:
- request data is logged and is displayed using Symfony VarDumper component
- session data is logged and is displayed using Symfony VarDumper component
- parameter data in the trace is logged and is displayed using Symfony VarDumper component