Created
July 5, 2018 10:16
-
-
Save Pum-purum/d6cefdddb662c485329093bac5b99e49 to your computer and use it in GitHub Desktop.
быстрая запись в лог Битркиса
This file contains hidden or 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
function slog($message, $mark = 'DEBUG') | |
{ | |
CEventLog::Add(array( | |
"SEVERITY" => "DEBUG", | |
"AUDIT_TYPE_ID" => $mark, | |
"MODULE_ID" => "iblock", | |
"ITEM_ID" => 0, | |
"DESCRIPTION" => json_encode($message),)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment