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 static void Print(string text, params object[] args) { ProgramLog.Write(new LogEntry { target = console, message = String.Format(text, args), thread = Thread.CurrentThread }); }
public static void Print(string text) { ProgramLog.Write(new LogEntry { target = console, message = text, thread = Thread.CurrentThread }); }
public void Log(string fmt, SendingLogger logger, params object[] args) { ProgramLog.Log(this, fmt, args); }
public void Log(string fmt, 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); }