Example #1
0
 public LogEventArgs(LogMessage message)
 {
     LogMessage = message;
 }
Example #2
0
File: Log.cs Project: jfreax/BAIMP
        /// <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));
            }
        }