/// <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); }
/// <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); }