Function OnAuditLog is executed before a record is added to the log.
$action - Action occured.
$params - $params: user IP address, $params: username.
$table - Table being modified.
$keys - Array of key column values pointing to the current record.
$newvalues - Array of field values being added to the database.
$oldvalues - Array of previous field values. Applies to the Edit and Delete functions.
True: to save the action in the log.
False: to not save the action in the log.
Applies to pages
All pages. Insert your code into the Before audit log event.
If you do not want to record actions done by the admin in the audit log, you can use the following code: