Preparations
- apply changes from the D466 (code & database changes) if they're not present yet
- in IDE:
- open the /system/config.php file for editing
- ensure that these lines are present:
$_CONFIG['Misc']['SystemLogIncludeRequestData'] = '0'; $_CONFIG['Misc']['SystemLogRequestDataLimit'] = '5KB';
- save changes
Part 1 - no defaults (notice)
- in IDE:
- open /units/users/users_event_handler.php file for editing
- replace any code above the parent::SetCustomQuery($event); line in the \UsersEventHandler::SetCustomQuery method with this one:
trigger_error('test notice 1'); trigger_error('test notice 2');
- save changes
- in Admin Console:
- go to the User Management → Administrators section
- confirm that you're seeing the records in the Debugger report about the above-triggered notices
- go to the Logs & Reports → System Log section
- confirm, that:
- you're seeing the records in the System Log grid about the above-triggered notices
- these records don't have Request Data and Session Data fields present on their detail page
Part 2 - no defaults (exception)
- in IDE:
- open /units/users/users_event_handler.php file for editing
- replace any code above the parent::SetCustomQuery($event); line in the \UsersEventHandler::SetCustomQuery method with this one:
throw new Exception('test exception');
- save changes
- in Admin Console:
- go to the User Management → Administrators section
- confirm that you're seeing a record in the Debugger report about the above-thrown exception
- go to the Logs & Reports → System Log section
- confirm that,
- you're seeing a record in the System Log grid about the above-thrown exception
- that record doesn't have Request Data and Session Data fields present on its detail page
Part 3 - defaults (notice)
NOTE: Ignore the System Log notification E-mail not specified notice.
- in IDE:
- open /units/users/users_event_handler.php file for editing
- replace any code above the parent::SetCustomQuery($event); line in the \UsersEventHandler::SetCustomQuery method with this one:
$this->Application->log('')->notify(true)->addRequestData()->addSessionData(); trigger_error('test notice 1'); trigger_error('test notice 2');
- save changes
- in Admin Console:
- go to the User Management → Administrators section
- confirm that you're seeing the records in the Debugger report about the above-triggered notices
- go to the Logs & Reports → System Log section
- confirm, that:
- you're seeing the records in the System Log grid about the above-triggered notices
- 1st above-found record has Sent value in the Notification Status field and Request Data and Session Data fields present on its detail page
- 2nd above-found record has Disabled value in the Notification Status field and Request Data and Session Data fields absent on its detail page
Part 4 - defaults (exception)
NOTE: Ignore the System Log notification E-mail not specified notice.
- in IDE:
- open /units/users/users_event_handler.php file for editing
- replace any code above the parent::SetCustomQuery($event); line in the \UsersEventHandler::SetCustomQuery method with this one:
$this->Application->log('')->notify(true)->addRequestData()->addSessionData(); throw new Exception('test exception');
- save changes
- in Admin Console:
- go to the User Management → Administrators section
- confirm that you're seeing a record in the Debugger report about the above-thrown exception
- go to the Logs & Reports → System Log section
- confirm, that:
- you're seeing a record in the System Log grid about the above-thrown exception
- Request Data and Session Data fields present on its detail page