Answer the question
In order to leave comments, you need to log in
How to see error logs?
How to view error logs? not in bitrix/modules
Answer the question
In order to leave comments, you need to log in
What kind of errors do you want to track?
Debug to file:
It is possible to record all queries to the database and their execution time in a separate debug file, for this it is necessary to initialize the $DBDebugToFile variable with the value "true" in the /bitrix/php_interface/dbconn.php file.
In the new core, the following functions are responsible for this: Bitrix\Main\Diag\Debug::dumpToFile and Bitrix\Main\Diag\Debug::writeToFile.
Manual addition via addMessage2Log:// В файле /bitrix/php_interface/dbconn.php определить константу LOG_FILENAME, в которой задать путь к лог-файлу define("LOG_FILENAME", $_SERVER["DOCUMENT_ROOT"]."/log.txt");
In the future, any arrays, texts can be sent to this file usingAddMessage2Log("Произвольный текст сообщения или массив", "my_module_id(необязательно)");
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question