class DebugPrintSource
Constants 4
static private const int MSG_LOG = 0static private const int MSG_WARNING = 1static private const int MSG_ERROR = 2static private const int MSG_COUNT = 3Referenced by IsDebugLog()
Members 5
static private string s_MsgPrefix[MSG_COUNT]static private string s_MsgStackMarkStartstatic private string s_MsgStackMarkEndstatic private bool s_MsgStackMarkedstatic private bool s_TraceAllLogsMethods 14
static void OnInit()References MSG_ERROR, MSG_LOG, MSG_WARNING
Show 5 more
, s_MsgPrefix, s_MsgStackMarked, s_MsgStackMarkEnd, s_MsgStackMarkStart, and s_TraceAllLogsstatic void Log(string msg)Prints debug message with normal prio
msgstringDebug message for print
Returns: void None
DebugPrint.Log("Hello World");
>> [Log]: Hello World;static void LogAndTrace(string msg)Prints debug message as normal message and prints stack trace of calls
msgstringDebug message for print
Returns: void None
DebugPrint.LogAndTrace("Hello World, this is normal log");
>> [Log]: Hello World, this is normal log
>> -- Stack trace --
>> OnKeyPress() Scripts/mission/missionGameplay.c : 230
>> OnKeyPress() Scripts/DayZGame.c : 346
>> -----------------static void LogWarning(string msg)Prints debug message as warning message
msgstringDebug message for warning print
Returns: void None
DebugPrint.LogWarning("Hello World, this is warning log");
>> [Warning]: Hello World, this is warning logstatic void LogWarningAndTrace(string msg)Prints debug message as warning message and prints stack trace of calls
msgstringDebug message for warning print
Returns: void None
DebugPrint.LogWarningAndTrace("Hello World, this is warning log");
>> [Warning]: Hello World, this is warning log
>> -- Stack trace --
>> OnKeyPress() Scripts/mission/missionGameplay.c : 230
>> OnKeyPress() Scripts/DayZGame.c : 346
>> -----------------static void LogError(string msg)Prints debug message as error message
msgstringDebug message for error print
Returns: void None
DebugPrint.LogError("Hello World, this is error log");
>> [Error]: Hello World, this is error logstatic void LogErrorAndTrace(string msg)Prints debug message as error message and prints stack trace of calls
msgstringDebug message for error print
Returns: void None
DebugPrint.LogErrorAndTrace("Hello World, this is error log");
>> [Error]: Hello World, this is error log
>> -- Stack trace --
>> OnKeyPress() Scripts/mission/missionGameplay.c : 230
>> OnKeyPress() Scripts/DayZGame.c : 346
>> -----------------Function adjust received message for debug console (Do not use)
msgstringMessage for adjust
Returns: string Adjusted Message
string msg = DebugPrint.AdjustDebugLog("s = 'Hello World, this is error log'");
DebugPrint.Log(msg);
>> Hello World, this is error logstatic void EnableTracingLogs(bool enable)References s_TraceAllLogs
Referenced by AdjustDebugLog()
Referenced by AdjustDebugLog()
Referenced by AdjustDebugLog()
Referenced by AdjustDebugLog()
Referenced by Log(), LogAndTrace(), LogError()