public static void Init(bool enableLog, bool enableTime, bool enableSave, bool enableStack, string logFileDir, IDebugerConsole console) { EnableLog = enableLog; EnableTime = enableTime; EnableSave = enableSave; EnableStack = enableStack; LogFileDir = logFileDir; m_console = console; if (string.IsNullOrEmpty(LogFileDir)) { string path = System.AppDomain.CurrentDomain.BaseDirectory; LogFileDir = path + "/DebugerLog/"; } else { LogFileDir = LogFileDir.Replace('\\', '/'); if (!LogFileDir.EndsWith("/")) { LogFileDir += "/"; } } LogLogHead(); }
public static void Init(string logFileDir = null, IDebugerConsole console = null) { LogFileDir = logFileDir; m_console = console; if (string.IsNullOrEmpty(LogFileDir)) { string path = System.AppDomain.CurrentDomain.BaseDirectory; LogFileDir = path + "/DebugerLog/"; } }
public static void Init(string logFileDir = null, IDebugerConsole console = null) { LogFileDir = logFileDir; m_console = console; if (string.IsNullOrEmpty(LogFileDir)) { string path = System.AppDomain.CurrentDomain.BaseDirectory; LogFileDir = path + "/DebugerLog/"; } startDateTime = DateTime.Now; mStopWatch = Stopwatch.StartNew(); }
private static void Internal_LogWarning(string msg) { if (Debuger.EnableTime) { DateTime now = DateTime.Now; msg = now.ToString("HH:mm:ss.fff") + " " + msg; } if (m_console == null) { m_console = new NativeLogConsole(); } m_console.LogWarning(msg); LogToFile("[W]" + msg); }