DayZ 1.24
|
Static Private Member Functions | |
static void | OnInit () |
static void | Log (string msg) |
Prints debug message with normal prio. | |
static void | LogAndTrace (string msg) |
Prints debug message as normal message and prints stack trace of calls. | |
static void | LogWarning (string msg) |
Prints debug message as warning message. | |
static void | LogWarningAndTrace (string msg) |
Prints debug message as warning message and prints stack trace of calls. | |
static void | LogError (string msg) |
Prints debug message as error message. | |
static void | LogErrorAndTrace (string msg) |
Prints debug message as error message and prints stack trace of calls. | |
static string | AdjustDebugLog (string msg) |
Function adjust received message for debug console (Do not use) | |
static void | EnableTracingLogs (bool enable) |
bool | IsDebugLog (string msg) |
string | TrimDebugLog (string msg) |
bool | IsStackTrace (string msg) |
string | TrimStackTrace (string msg) |
void | LogMessage (string msg, int msg_type, bool trace=false) |
Static Private Attributes | |
const int | MSG_LOG = 0 |
const int | MSG_WARNING = 1 |
const int | MSG_ERROR = 2 |
const int | MSG_COUNT = 3 |
string | s_MsgPrefix [MSG_COUNT] |
string | s_MsgStackMarkStart |
string | s_MsgStackMarkEnd |
bool | s_MsgStackMarked |
bool | s_TraceAllLogs |
Definition at line 1 of file DebugPrint.c.
Function adjust received message for debug console (Do not use)
msg | string Message for adjust |
string
Adjusted Message Definition at line 141 of file DebugPrint.c.
References IsDebugLog(), IsStackTrace(), TrimDebugLog(), and TrimStackTrace().
Definition at line 157 of file DebugPrint.c.
References MSG_COUNT, and s_MsgPrefix.
Referenced by AdjustDebugLog().
Definition at line 179 of file DebugPrint.c.
References s_MsgStackMarked, s_MsgStackMarkEnd, and s_MsgStackMarkStart.
Referenced by AdjustDebugLog().
Prints debug message with normal prio.
msg | string Debug message for print |
void
None Definition at line 37 of file DebugPrint.c.
References LogMessage(), MSG_LOG, and s_TraceAllLogs.
Prints debug message as normal message and prints stack trace of calls.
msg | string Debug message for print |
void
None Definition at line 56 of file DebugPrint.c.
References LogMessage(), and MSG_LOG.
Prints debug message as error message.
msg | string Debug message for error print |
void
None Definition at line 105 of file DebugPrint.c.
References LogMessage(), MSG_ERROR, and s_TraceAllLogs.
Prints debug message as error message and prints stack trace of calls.
msg | string Debug message for error print |
void
None Definition at line 124 of file DebugPrint.c.
References LogMessage(), and MSG_ERROR.
Referenced by OnlineServices::ErrorCaught(), OnlineServices::LoadFriends(), OnlineServices::LoadMPPrivilege(), OnlineServices::LoadPermissions(), OnlineServices::LoadServers(), OnlineServices::LoadVoicePrivilege(), OnlineServices::SetServerFavorited(), OnlineServices::ShowInviteScreen(), and OnlineServices::ShowUserProfile().
Definition at line 206 of file DebugPrint.c.
References DumpStack(), Print(), and s_MsgPrefix.
Referenced by Log(), LogAndTrace(), LogError(), LogErrorAndTrace(), LogWarning(), and LogWarningAndTrace().
Prints debug message as warning message.
msg | string Debug message for warning print |
void
None Definition at line 71 of file DebugPrint.c.
References LogMessage(), MSG_WARNING, and s_TraceAllLogs.
Prints debug message as warning message and prints stack trace of calls.
msg | string Debug message for warning print |
void
None Definition at line 90 of file DebugPrint.c.
References LogMessage(), and MSG_WARNING.
Definition at line 14 of file DebugPrint.c.
References MSG_ERROR, MSG_LOG, MSG_WARNING, s_MsgPrefix, s_MsgStackMarked, s_MsgStackMarkEnd, s_MsgStackMarkStart, and s_TraceAllLogs.
Definition at line 167 of file DebugPrint.c.
Referenced by AdjustDebugLog().
Definition at line 198 of file DebugPrint.c.
References string::Empty.
Referenced by AdjustDebugLog().
Definition at line 6 of file DebugPrint.c.
Referenced by IsDebugLog().
Definition at line 5 of file DebugPrint.c.
Referenced by LogError(), LogErrorAndTrace(), and OnInit().
Definition at line 3 of file DebugPrint.c.
Referenced by Log(), LogAndTrace(), and OnInit().
Definition at line 4 of file DebugPrint.c.
Referenced by LogWarning(), LogWarningAndTrace(), and OnInit().
Definition at line 8 of file DebugPrint.c.
Referenced by IsDebugLog(), LogMessage(), and OnInit().
|
staticprivate |
Definition at line 11 of file DebugPrint.c.
Referenced by IsStackTrace(), and OnInit().
|
staticprivate |
Definition at line 10 of file DebugPrint.c.
Referenced by IsStackTrace(), and OnInit().
|
staticprivate |
Definition at line 9 of file DebugPrint.c.
Referenced by IsStackTrace(), and OnInit().
|
staticprivate |
Definition at line 12 of file DebugPrint.c.
Referenced by EnableTracingLogs(), Log(), LogError(), LogWarning(), and OnInit().