Last active
April 23, 2016 08:22
-
-
Save s2ar/09a28d9317fc1b7d6de5 to your computer and use it in GitHub Desktop.
bitrix запись в журнал событий
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
AddEventHandler('main', 'OnEventLogGetAuditTypes', 'ASD_OnEventLogGetAuditTypes'); | |
function ASD_OnEventLogGetAuditTypes() | |
{ | |
return array('MY_OWN_TYPE' => '[MY_OWN_TYPE] Мой собственный тип'); | |
} | |
CEventLog::Add(array( | |
"SEVERITY" => "SECURITY", | |
"AUDIT_TYPE_ID" => "MY_OWN_TYPE", | |
"MODULE_ID" => "main", | |
"ITEM_ID" => 123, | |
"DESCRIPTION" => "Какое-то описание", | |
)); | |
?> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment