예제 #1
0
		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);
 }
예제 #5
0
 public void Log(string fmt, SendingLogger logger, params object[] args)
 {
     ProgramLog.Log(this, fmt, args);
 }
예제 #6
0
 public void Log(string text, SendingLogger logger)
 {
     ProgramLog.Log(this, text, logger);
 }
예제 #7
0
 public void Log(string text)
 {
     ProgramLog.Log(this, text, SendingLogger.CONSOLE);
 }
예제 #8
0
 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
     });
 }