Only beneficial for diag and developers, removed on retail
Avoid writing to this file as it will grow indefinitely Active when '-logToFile=1' is set
Active when '-logToRpt=1' is set
Active when '-logToScript=1' is set
См. определение в файле 3_Game/DayZ/tools/Debug.c строка 631
632 {
633 if (log_message.
Length() == 0)
634 return;
635
637#ifdef DIAG_DEVELOPER
638#ifndef SERVER
639 CachedObjectsParams.PARAM1_STRING.param1 = log_message;
641#endif
642#endif
643
646#ifdef LOG_TO_FILE
648 if (fileHandle != 0)
649 {
652 }
653#endif
654
656#ifdef LOG_TO_RPT
658#endif
659
661#ifdef LOG_TO_SCRIPT
662 Print(
string.Format(
"%1", log_message));
663#endif
664 }
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().