public LogEventArgs(LogMessage message) { LogMessage = message; }
/// <summary> /// Add a new log entry. /// </summary> /// <param name="logLevel">Log level.</param> /// <param name="source">Source.</param> /// <param name="message">Message.</param> public static void Add(LogLevel logLevel, string source, string message) { LogMessage logMessage = new LogMessage(logLevel, source, message); LogMessages.Add(logMessage); if (logAdded != null) { logAdded(null, new LogEventArgs(logMessage)); } }