public ProgressLogger (int max, string message) { Max = max; Message = message; current = 0; done = false; Thread = System.Threading.Thread.CurrentThread; timer = new Stopwatch (); timer.Start (); ProgramLog.AddProgressLogger (this); }
public override void WriteLine(string text) { if (cache != null && cache.Length > 0) { cache.Append(text); ProgramLog.Log(cache.ToString()); cache.Clear(); } else { ProgramLog.Log(text); } }
public void Log(string fmt, params object[] args) { ProgramLog.Log(this, fmt, args); }
public void Log(string text) { ProgramLog.Log(this, text); }
public void Log(string fmt, SendingLogger logger, params object[] args) { ProgramLog.Log(this, fmt, args); }
public void Log(string text, SendingLogger logger) { ProgramLog.Log(this, text, logger); }
public void Log(string text) { ProgramLog.Log(this, text, SendingLogger.CONSOLE); }
public void Log(string text, bool multi = false) { ProgramLog.Log(this, text, multi); }
public static void Print(string text) { ProgramLog.Write(new LogEntry { target = console, message = text, thread = Thread.CurrentThread }); }