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