protected virtual void OnLogEntryWritten(LogEntry entry) { if (entry.IsError && ErrorLogFileWriter != null) { ErrorLogFileWriter.WriteLines(new[] { entry.AsText() }); } }