/// <summary> /// Returns the last logged event. /// </summary> /// <returns>Last logged event.</returns> public string GetLastEvent() { LoggerEvent e = events.LastOrDefault(); if (e != null) { return(e.Description); } else { return(null); } }
/// <summary> /// Logs an event. Takes a <code>LoggerEvent</code>. /// </summary> /// <param name="e">Event</param> public void Add(LoggerEvent e) { events.Add(e); }