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 EnableTracingLogs(bool enable)
static private const int MSG_COUNT
static private bool s_MsgStackMarked
static private string s_MsgStackMarkStart
static private string s_MsgPrefix[MSG_COUNT]
static private void LogMessage(string msg, int msg_type, bool trace=false)
static void LogWarningAndTrace(string msg)
Prints debug message as warning message and prints stack trace of calls.
static private string TrimStackTrace(string msg)
static private const int MSG_LOG
static void LogWarning(string msg)
Prints debug message as warning message.
static private const int MSG_WARNING
static void LogError(string msg)
Prints debug message as error message.
static string AdjustDebugLog(string msg)
Function adjust received message for debug console (Do not use)
static void Log(string msg)
Prints debug message with normal prio.
static private bool IsStackTrace(string msg)
static private bool IsDebugLog(string msg)
static void LogAndTrace(string msg)
Prints debug message as normal message and prints stack trace of calls.
static void LogErrorAndTrace(string msg)
Prints debug message as error message and prints stack trace of calls.
static private const int MSG_ERROR
static private string s_MsgStackMarkEnd
static private bool s_TraceAllLogs
static private string TrimDebugLog(string msg)
proto void DumpStack()
Prints current call stack (stack trace)
proto void Print(void var)
Prints content of variable to console/log.
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.
static const string Empty
proto native int Length()
Returns length of string.