public void AddLogEntry(ILogItem logItem) { this.logItems.Add(logItem); this.logFileWriter.WriteLine(logItem.ToString()); }