Add
int CEventLog::Add( array fields )
The method adds event for the event log record. Static method.
Parameters
Parameter | Description | Available from version |
---|---|---|
fields | Added event fields. The following values are available:
|
Starting from version 15.5.9, the following method array keys: REMOTE_ADDR, USER_AGENT, REQUEST_URI, USER_ID, GUEST_ID are re-defined so there is no point to pass them.
Examples
<? CEventLog::Add(array( "SEVERITY" => "SECURITY", "AUDIT_TYPE_ID" => "MY_OWN_TYPE", "MODULE_ID" => "main", "ITEM_ID" => 123, "DESCRIPTION" => "Some description", )); ?>
© «Bitrix24», 2001-2024