From ab1065a567151fd45fcf4698cd7d18708b94e35f Mon Sep 17 00:00:00 2001 From: LukePulverenti Date: Thu, 21 Feb 2013 15:26:35 -0500 Subject: removed static logger --- MediaBrowser.Common/Logging/Logger.cs | 89 ----------------------------------- 1 file changed, 89 deletions(-) delete mode 100644 MediaBrowser.Common/Logging/Logger.cs (limited to 'MediaBrowser.Common/Logging/Logger.cs') diff --git a/MediaBrowser.Common/Logging/Logger.cs b/MediaBrowser.Common/Logging/Logger.cs deleted file mode 100644 index a6cb6d885..000000000 --- a/MediaBrowser.Common/Logging/Logger.cs +++ /dev/null @@ -1,89 +0,0 @@ -using MediaBrowser.Model.Logging; -using System; - -namespace MediaBrowser.Common.Logging -{ - /// - /// Class Logger - /// - public static class Logger - { - /// - /// Gets or sets the logger instance. - /// - /// The logger instance. - internal static ILogger LoggerInstance { get; set; } - - /// - /// Logs the info. - /// - /// The message. - /// The param list. - public static void LogInfo(string message, params object[] paramList) - { - LogEntry(message, LogSeverity.Info, null, paramList); - } - - /// - /// Logs the debug info. - /// - /// The message. - /// The param list. - public static void LogDebugInfo(string message, params object[] paramList) - { - LogEntry(message, LogSeverity.Debug, null, paramList); - } - - /// - /// Logs the exception. - /// - /// The message. - /// The ex. - /// The param list. - public static void LogException(string message, Exception ex, params object[] paramList) - { - LogEntry(message, LogSeverity.Error, ex, paramList); - } - - /// - /// Logs the warning. - /// - /// The message. - /// The param list. - public static void LogWarning(string message, params object[] paramList) - { - LogEntry(message, LogSeverity.Warn, null, paramList); - } - - /// - /// Logs the entry. - /// - /// The message. - /// The level. - /// The exception. - /// The param list. - private static void LogEntry(string message, LogSeverity level, Exception exception, params object[] paramList) - { - if (LoggerInstance == null) - { - return; - } - - if (exception == null) - { - LoggerInstance.Log(level, message, paramList); - } - else - { - if (level == LogSeverity.Fatal) - { - LoggerInstance.FatalException(message, exception, paramList); - } - else - { - LoggerInstance.ErrorException(message, exception, paramList); - } - } - } - } -} -- cgit v1.2.3