Beispiel #1
0
        /// <summary>
        /// Log a caught exception
        /// </summary>
        public void LogException(LogLevel level, Exception ex, string message, params object[] parameters)
        {
            var logMessage = new LogMessage(this, "IdleLogger", level, ex, message, parameters);

            LogMessage(logMessage);
        }
Beispiel #2
0
        /// <summary>
        /// Add a new entry to the log
        /// </summary>
        public void Log(LogLevel level, string message, params object[] formatParameters)
        {
            var logMessage = new LogMessage(this, "IdleLogger", level, message, formatParameters);

            LogMessage(logMessage);
        }