public static void Log(string str) { str = Debugger.GetLogFormat(str); if (Debugger.useLog) { Debug.Log(str); return; } if (Debugger.logger != null) { Debugger.logger.Log(str, string.Empty, LogType.Log); } }
public static void LogWarning(string str) { str = Debugger.GetLogFormat(str); if (Debugger.useLog) { Debug.LogWarning(str); return; } if (Debugger.logger != null) { string stack = StackTraceUtility.ExtractStackTrace(); Debugger.logger.Log(str, stack, LogType.Warning); } }
public static void LogException(string str, Exception e) { Debugger.threadStack = e.StackTrace; str = Debugger.GetLogFormat(str + e.Message); if (Debugger.useLog) { Debug.LogError(str); return; } if (Debugger.logger != null) { Debugger.logger.Log(str, Debugger.threadStack, LogType.Exception); } }