예제 #1
0
 protected virtual void OnLogEntryWritten(LogEntry entry)
 {
     if (entry.IsError && ErrorLogFileWriter != null)
     {
         ErrorLogFileWriter.WriteLines(new[] { entry.AsText() });
     }
 }
예제 #2
0
 protected virtual void OnLogBatchProduced(IList <LogEntry> entries)
 {
     if (LogFileWriter != null)
     {
         var lines = entries.Select(e => e.AsText()).ToList();
         LogFileWriter.WriteLines(lines);
     }
 }