Only beneficial for diag and developers, removed on retail
Avoid writing to this file as it will grow indefinitely
Active when '-logToRpt=1' is set
Active when '-logToScript=1' is set
См. определение в файле 3_Game/DayZ/tools/Debug.c строка 618
619 {
620 if (log_message.
Length() == 0)
621 return;
622
624#ifdef DIAG_DEVELOPER
625#ifndef SERVER
626 CachedObjectsParams.PARAM1_STRING.param1 = log_message;
628#endif
629#endif
630
632#ifdef DIAG_DEVELOPER
634#ifdef LOG_TO_FILE
636 if (fileHandle != 0)
637 {
640 }
641#endif
642#endif
643
645#ifdef LOG_TO_RPT
647#endif
648
650#ifdef LOG_TO_SCRIPT
651 Print(
string.Format(
"%1", log_message));
652#endif
653 }
Dispatcher GetDispatcher()
const CallID CALL_ID_SCR_CNSL_ADD_PRINT
static string GetFileName()
Param CallMethod(CallID call_id, Param params)
proto void Print(void var)
Prints content of variable to console/log.
proto void PrintToRPT(void var)
Prints content of variable to RPT file (performance warning - each write means fflush!...
proto void CloseFile(FileHandle file)
Close the File.
proto FileHandle OpenFile(string name, FileMode mode)
Opens File.
proto void FPrintln(FileHandle file, void var)
Write to file and add new line.
proto native int Length()
Returns length of string.
Перекрестные ссылки CALL_ID_SCR_CNSL_ADD_PRINT, Dispatcher::CallMethod(), CloseFile(), FPrintln(), GetDispatcher(), GetFileName(), string::Length(), OpenFile(), CachedObjectsParams::PARAM1_STRING, Print() и PrintToRPT().
Используется в LogMessage() и ReceivedLogMessageFromServer().