From 767cdc1f6f6a63ce997fc9476911e2c361f9d402 Mon Sep 17 00:00:00 2001 From: LukePulverenti Date: Wed, 20 Feb 2013 20:33:05 -0500 Subject: Pushing missing changes --- MediaBrowser.Model/Logging/ILogger.cs | 78 +++++++++++++++++++++++++++++++ MediaBrowser.Model/Logging/LogSeverity.cs | 30 ++++++++++++ 2 files changed, 108 insertions(+) create mode 100644 MediaBrowser.Model/Logging/ILogger.cs create mode 100644 MediaBrowser.Model/Logging/LogSeverity.cs (limited to 'MediaBrowser.Model/Logging') diff --git a/MediaBrowser.Model/Logging/ILogger.cs b/MediaBrowser.Model/Logging/ILogger.cs new file mode 100644 index 0000000000..fd704a2547 --- /dev/null +++ b/MediaBrowser.Model/Logging/ILogger.cs @@ -0,0 +1,78 @@ +using System; +using System.Text; + +namespace MediaBrowser.Model.Logging +{ + /// + /// Interface ILogger + /// + public interface ILogger + { + /// + /// Infoes the specified message. + /// + /// The message. + /// The param list. + void Info(string message, params object[] paramList); + + /// + /// Errors the specified message. + /// + /// The message. + /// The param list. + void Error(string message, params object[] paramList); + + /// + /// Warns the specified message. + /// + /// The message. + /// The param list. + void Warn(string message, params object[] paramList); + + /// + /// Debugs the specified message. + /// + /// The message. + /// The param list. + void Debug(string message, params object[] paramList); + + /// + /// Fatals the specified message. + /// + /// The message. + /// The param list. + void Fatal(string message, params object[] paramList); + + /// + /// Fatals the exception. + /// + /// The message. + /// The exception. + /// The param list. + void FatalException(string message, Exception exception, params object[] paramList); + + /// + /// Logs the specified severity. + /// + /// The severity. + /// The message. + /// The param list. + void Log(LogSeverity severity, string message, params object[] paramList); + + /// + /// Logs the exception. + /// + /// The message. + /// The exception. + /// The param list. + void ErrorException(string message, Exception exception, params object[] paramList); + + /// + /// Logs the multiline. + /// + /// The message. + /// The severity. + /// Content of the additional. + void LogMultiline(string message, LogSeverity severity, StringBuilder additionalContent); + } +} diff --git a/MediaBrowser.Model/Logging/LogSeverity.cs b/MediaBrowser.Model/Logging/LogSeverity.cs new file mode 100644 index 0000000000..ae04872894 --- /dev/null +++ b/MediaBrowser.Model/Logging/LogSeverity.cs @@ -0,0 +1,30 @@ + +namespace MediaBrowser.Model.Logging +{ + /// + /// Enum LogSeverity + /// + public enum LogSeverity + { + /// + /// The info + /// + Info, + /// + /// The debug + /// + Debug, + /// + /// The warn + /// + Warn, + /// + /// The error + /// + Error, + /// + /// The fatal + /// + Fatal + } +} -- cgit v1.2.3