37 static void Log(
string msg)
175 int msg_lenght = msg.
Length();
176 int log_start = msg.
IndexOf(
"'") + 1;
178 if ( log_start == -1 )
183 int log_lenght = msg_lenght - log_start - 2;
185 return msg.
Substring(log_start, log_lenght);
210 if ( msg.
IndexOf(
"DebugPrint.c") != -1 )
218 static private void LogMessage(
string msg,
int msg_type,
bool trace=
false)
static void Log(string msg)
Prints debug message with normal prio.
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.
string s_MsgPrefix[MSG_COUNT]
bool IsStackTrace(string msg)
bool IsDebugLog(string msg)
static void LogAndTrace(string msg)
Prints debug message as normal message and prints stack trace of calls.
static void EnableTracingLogs(bool enable)
static void LogWarning(string msg)
Prints debug message as warning message.
string TrimStackTrace(string msg)
string TrimDebugLog(string msg)
static void LogErrorAndTrace(string msg)
Prints debug message as error message and prints stack trace of calls.
string s_MsgStackMarkStart
static string AdjustDebugLog(string msg)
Function adjust received message for debug console (Do not use)
void LogMessage(string msg, int msg_type, bool trace=false)
proto void DumpStack()
Prints current call stack (stack trace)
proto void Print(void var)
Prints content of variable to console/log.
proto native int Length()
Returns length of string.
proto string Substring(int start, int len)
Substring of 'str' from 'start' position 'len' number of characters.
proto native int IndexOf(string sample)
Finds 'sample' in 'str'. Returns -1 when not found.