public static void Log(SeverityGrades severity, string message, bool saveEntry = true) { var logEntry = new LogEntry(DateTime.Now, severity, message); _logs.Add(logEntry); if (saveEntry) { SaveEntry(logEntry); } }
public LogEntry(DateTime eventTime, SeverityGrades severity, string message) { _eventTime = eventTime; _severity = severity; _message = message; }