Beispiel #1
0
        /// <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);
            }
        }
Beispiel #2
0
 /// <summary>
 /// Logs an event. Takes a <code>LoggerEvent</code>.
 /// </summary>
 /// <param name="e">Event</param>
 public void Add(LoggerEvent e)
 {
     events.Add(e);
 }