define('LOG_FILENAME', $_SERVER['DOCUMENT_ROOT'].'/log.txt'); AddMessage2Log('$arFields = '.print_r($arFields, true),'');