Example #1
0
 public void CollateLogData(LogItem.ItemLevel levelOfInterest, ILogDataFormatting formatting)
 {
     foreach (IProcessLoadingProgress process in processed)
     {
         if (formatting.WantProcesses)
             formatting.InsertProcess(process);
         if (formatting.WantItems)
         {
             foreach (LogItem item in process.LogData)
             {
                 if (item.Level >= levelOfInterest)
                     formatting.InsertItem(item);
             }
         }
     }
 }
Example #2
0
 public void AddItem(LogItem item)
 {
     output.Write(item.Level.ToString());
     output.WriteLine(item.Message);
     output.Flush();
 }
 public void InsertItem(LogItem item)
 { }
 public void InsertItem(LogItem item)
 {
     data.AppendLine(item.Message);
 }
Example #5
0
 public void Log(LogItem item)
 {
     log.Add(item);
 }
Example #6
0
 public void AddItem(LogItem item)
 {
     output.Write(item.Level.ToString());
     output.WriteLine(item.Message);
     output.Flush();
 }
Example #7
0
 public void Log(LogItem item)
 {
     log.Add(item);
 }
Example #8
0
 public void Log(string text, LogItem.ItemLevel level)
 {
     log.Add(new LogItem(text, level));
 }