◆ AdjustDebugLog()
Function adjust received message for debug console (Do not use)
- Parameters
-
msg | string Message for adjust |
- Returns
string
Adjusted Message
>> Hello
World,
this is error log
Definition DebugPrint.c:2
static string AdjustDebugLog(string msg)
Function adjust received message for debug console (Do not use)
Definition DebugPrint.c:141
static void Log(string msg)
Prints debug message with normal prio.
Definition DebugPrint.c:37
References IsDebugLog(), IsStackTrace(), TrimDebugLog(), and TrimStackTrace().
◆ EnableTracingLogs()
static void EnableTracingLogs |
( |
bool |
enable | ) |
|
|
inlinestaticprivate |
◆ IsDebugLog()
◆ IsStackTrace()
◆ Log()
◆ LogAndTrace()
static void LogAndTrace |
( |
string |
msg | ) |
|
|
inlinestaticprivate |
Prints debug message as normal message and prints stack trace of calls.
- Parameters
-
msg | string Debug message for print |
- Returns
void
None
>> [
Log]: Hello
World,
this is normal log
>> -- Stack trace --
>> OnKeyPress() Scripts/
mission/missionGameplay.c : 230
>> OnKeyPress() Scripts/DayZGame.c : 346
>> -----------------
Mission mission
Definition DisplayStatus.c:28
static void LogAndTrace(string msg)
Prints debug message as normal message and prints stack trace of calls.
Definition DebugPrint.c:56
References LogMessage(), and MSG_LOG.
◆ LogError()
static void LogError |
( |
string |
msg | ) |
|
|
inlinestaticprivate |
Prints debug message as error message.
- Parameters
-
msg | string Debug message for error print |
- Returns
void
None
static void LogError(string msg)
Prints debug message as error message.
Definition DebugPrint.c:105
void Error(string err)
Messagebox with error message.
Definition EnDebug.c:90
References LogMessage(), MSG_ERROR, and s_TraceAllLogs.
◆ LogErrorAndTrace()
static void LogErrorAndTrace |
( |
string |
msg | ) |
|
|
inlinestaticprivate |
◆ LogMessage()
static private void LogMessage |
( |
string |
msg, |
|
|
int |
msg_type, |
|
|
bool |
trace = false |
|
) |
| |
|
inlinestaticprivate |
◆ LogWarning()
static void LogWarning |
( |
string |
msg | ) |
|
|
inlinestaticprivate |
Prints debug message as warning message.
- Parameters
-
msg | string Debug message for warning print |
- Returns
void
None
>> [Warning]: Hello
World,
this is warning log
static void LogWarning(string msg)
Prints debug message as warning message.
Definition DebugPrint.c:71
References LogMessage(), MSG_WARNING, and s_TraceAllLogs.
◆ LogWarningAndTrace()
static void LogWarningAndTrace |
( |
string |
msg | ) |
|
|
inlinestaticprivate |
Prints debug message as warning message and prints stack trace of calls.
- Parameters
-
msg | string Debug message for warning print |
- Returns
void
None
>> [Warning]: Hello
World,
this is warning log
>> -- Stack trace --
>> OnKeyPress() Scripts/
mission/missionGameplay.c : 230
>> OnKeyPress() Scripts/DayZGame.c : 346
>> -----------------
static void LogWarningAndTrace(string msg)
Prints debug message as warning message and prints stack trace of calls.
Definition DebugPrint.c:90
References LogMessage(), and MSG_WARNING.
◆ OnInit()
◆ TrimDebugLog()
◆ TrimStackTrace()
◆ MSG_COUNT
private const int MSG_COUNT = 3 |
|
staticprivate |
◆ MSG_ERROR
private const int MSG_ERROR = 2 |
|
staticprivate |
◆ MSG_LOG
private const int MSG_LOG = 0 |
|
staticprivate |
◆ MSG_WARNING
private const int MSG_WARNING = 1 |
|
staticprivate |
◆ s_MsgPrefix
◆ s_MsgStackMarked
private bool s_MsgStackMarked |
|
staticprivate |
◆ s_MsgStackMarkEnd
private string s_MsgStackMarkEnd |
|
staticprivate |
◆ s_MsgStackMarkStart
private string s_MsgStackMarkStart |
|
staticprivate |
◆ s_TraceAllLogs
private bool s_TraceAllLogs |
|
staticprivate |
The documentation for this class was generated from the following file: