From 5423e94a3f340dae225a066cd274af07725da23d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=ABl=20Bourbonnais?= Date: Fri, 5 Jun 2015 14:45:13 -0400 Subject: [PATCH 1/3] Added Resharper support on ILog This way, when storing the logger in it's base interface will still get the completion. --- src/Common.Logging.Core/Logging/ILog.cs | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/Common.Logging.Core/Logging/ILog.cs b/src/Common.Logging.Core/Logging/ILog.cs index bac96bf..2e52dd0 100644 --- a/src/Common.Logging.Core/Logging/ILog.cs +++ b/src/Common.Logging.Core/Logging/ILog.cs @@ -19,6 +19,7 @@ #endregion using System; +using Common.Logging.Factory; using FormatMessageCallback = System.Action; namespace Common.Logging @@ -72,6 +73,7 @@ public interface ILog /// /// The format of the message object to log. /// the list of format arguments + [StringFormatMethod("format")] void TraceFormat(string format, params object[] args); /// @@ -80,6 +82,7 @@ public interface ILog /// The format of the message object to log. /// The exception to log. /// the list of format arguments + [StringFormatMethod("format")] void TraceFormat(string format, Exception exception, params object[] args); /// @@ -88,6 +91,7 @@ public interface ILog /// An that supplies culture-specific formatting information. /// The format of the message object to log. /// + [StringFormatMethod("format")] void TraceFormat(IFormatProvider formatProvider, string format, params object[] args); /// @@ -97,6 +101,7 @@ public interface ILog /// The format of the message object to log. /// The exception to log. /// + [StringFormatMethod("format")] void TraceFormat(IFormatProvider formatProvider, string format, Exception exception, params object[] args); /// @@ -163,6 +168,7 @@ public interface ILog /// /// The format of the message object to log. /// the list of format arguments + [StringFormatMethod("format")] void DebugFormat(string format, params object[] args); /// @@ -171,6 +177,7 @@ public interface ILog /// The format of the message object to log. /// The exception to log. /// the list of format arguments + [StringFormatMethod("format")] void DebugFormat(string format, Exception exception, params object[] args); /// @@ -179,6 +186,7 @@ public interface ILog /// An that supplies culture-specific formatting information. /// The format of the message object to log. /// + [StringFormatMethod("format")] void DebugFormat(IFormatProvider formatProvider, string format, params object[] args); /// @@ -188,6 +196,7 @@ public interface ILog /// The format of the message object to log. /// The exception to log. /// + [StringFormatMethod("format")] void DebugFormat(IFormatProvider formatProvider, string format, Exception exception, params object[] args); /// @@ -254,6 +263,7 @@ public interface ILog /// /// The format of the message object to log. /// the list of format arguments + [StringFormatMethod("format")] void InfoFormat(string format, params object[] args); /// @@ -262,6 +272,7 @@ public interface ILog /// The format of the message object to log. /// The exception to log. /// the list of format arguments + [StringFormatMethod("format")] void InfoFormat(string format, Exception exception, params object[] args); /// @@ -270,6 +281,7 @@ public interface ILog /// An that supplies culture-specific formatting information. /// The format of the message object to log. /// + [StringFormatMethod("format")] void InfoFormat(IFormatProvider formatProvider, string format, params object[] args); /// @@ -279,6 +291,7 @@ public interface ILog /// The format of the message object to log. /// The exception to log. /// + [StringFormatMethod("format")] void InfoFormat(IFormatProvider formatProvider, string format, Exception exception, params object[] args); /// @@ -345,6 +358,7 @@ public interface ILog /// /// The format of the message object to log. /// the list of format arguments + [StringFormatMethod("format")] void WarnFormat(string format, params object[] args); /// @@ -353,6 +367,7 @@ public interface ILog /// The format of the message object to log. /// The exception to log. /// the list of format arguments + [StringFormatMethod("format")] void WarnFormat(string format, Exception exception, params object[] args); /// @@ -361,6 +376,7 @@ public interface ILog /// An that supplies culture-specific formatting information. /// The format of the message object to log. /// + [StringFormatMethod("format")] void WarnFormat(IFormatProvider formatProvider, string format, params object[] args); /// @@ -370,6 +386,7 @@ public interface ILog /// The format of the message object to log. /// The exception to log. /// + [StringFormatMethod("format")] void WarnFormat(IFormatProvider formatProvider, string format, Exception exception, params object[] args); /// @@ -436,6 +453,7 @@ public interface ILog /// /// The format of the message object to log. /// the list of format arguments + [StringFormatMethod("format")] void ErrorFormat(string format, params object[] args); /// @@ -444,6 +462,7 @@ public interface ILog /// The format of the message object to log. /// The exception to log. /// the list of format arguments + [StringFormatMethod("format")] void ErrorFormat(string format, Exception exception, params object[] args); /// @@ -452,6 +471,7 @@ public interface ILog /// An that supplies culture-specific formatting information. /// The format of the message object to log. /// + [StringFormatMethod("format")] void ErrorFormat(IFormatProvider formatProvider, string format, params object[] args); /// @@ -461,6 +481,7 @@ public interface ILog /// The format of the message object to log. /// The exception to log. /// + [StringFormatMethod("format")] void ErrorFormat(IFormatProvider formatProvider, string format, Exception exception, params object[] args); /// @@ -527,6 +548,7 @@ public interface ILog /// /// The format of the message object to log. /// the list of format arguments + [StringFormatMethod("format")] void FatalFormat(string format, params object[] args); /// @@ -535,6 +557,7 @@ public interface ILog /// The format of the message object to log. /// The exception to log. /// the list of format arguments + [StringFormatMethod("format")] void FatalFormat(string format, Exception exception, params object[] args); /// @@ -543,6 +566,7 @@ public interface ILog /// An that supplies culture-specific formatting information. /// The format of the message object to log. /// + [StringFormatMethod("format")] void FatalFormat(IFormatProvider formatProvider, string format, params object[] args); /// @@ -552,6 +576,7 @@ public interface ILog /// The format of the message object to log. /// The exception to log. /// + [StringFormatMethod("format")] void FatalFormat(IFormatProvider formatProvider, string format, Exception exception, params object[] args); /// From 5195943590cd3f1fbe0d0a4d45e0ad8db3466ff2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=ABl=20Bourbonnais?= Date: Fri, 5 Jun 2015 14:45:34 -0400 Subject: [PATCH 2/3] Added new logging level: Performance --- src/Common.Logging.Core/Logging/ILog.cs | 102 ++++++++++++ src/Common.Logging.Core/Logging/LogLevel.cs | 16 +- .../Logging/EntLib/EntLibLogger.cs | 5 + .../Logging/Factory/AbstractLogger.cs | 147 ++++++++++++++++++ .../Logging/Simple/AbstractSimpleLogger.cs | 10 ++ .../Logging/Simple/NoOpLogger.cs | 117 +++++++++++++- .../Logging/Factory/AbstractLoggerTests.cs | 8 + 7 files changed, 398 insertions(+), 7 deletions(-) diff --git a/src/Common.Logging.Core/Logging/ILog.cs b/src/Common.Logging.Core/Logging/ILog.cs index 2e52dd0..c78d84a 100644 --- a/src/Common.Logging.Core/Logging/ILog.cs +++ b/src/Common.Logging.Core/Logging/ILog.cs @@ -623,6 +623,100 @@ public interface ILog /// The exception to log, including its stack Fatal. void Fatal(IFormatProvider formatProvider, FormatMessageCallback formatMessageCallback, Exception exception); + /// + /// Log a message object with the level. + /// + /// The message object to log. + void Performance( object message ); + + /// + /// Log a message object with the level including + /// the stack trace of the passed + /// as a parameter. + /// + /// The message object to log. + /// The exception to log, including its stack trace. + void Performance( object message, Exception exception ); + + /// + /// Log a message with the level. + /// + /// The format of the message object to log. + /// the list of format arguments + void PerformanceFormat(string format, params object[] args); + + /// + /// Log a message with the level. + /// + /// The format of the message object to log. + /// The exception to log. + /// the list of format arguments + [StringFormatMethod("format")] + void PerformanceFormat(string format, Exception exception, params object[] args); + + /// + /// Log a message with the level. + /// + /// An that supplies culture-specific formatting information. + /// The format of the message object to log. + /// + [StringFormatMethod("format")] + void PerformanceFormat(IFormatProvider formatProvider, string format, params object[] args); + + /// + /// Log a message with the level. + /// + /// An that supplies culture-specific formatting information. + /// The format of the message object to log. + /// The exception to log. + /// + [StringFormatMethod("format")] + void PerformanceFormat(IFormatProvider formatProvider, string format, Exception exception, params object[] args); + + /// + /// Log a message with the level using a callback to obtain the message + /// + /// + /// Using this method avoids the cost of creating a message and evaluating message arguments + /// that probably won't be logged due to loglevel settings. + /// + /// A callback used by the logger to obtain the message if log level is matched + void Performance(FormatMessageCallback formatMessageCallback); + + /// + /// Log a message with the level using a callback to obtain the message + /// + /// + /// Using this method avoids the cost of creating a message and evaluating message arguments + /// that probably won't be logged due to loglevel settings. + /// + /// A callback used by the logger to obtain the message if log level is matched + /// The exception to log, including its stack trace. + void Performance(FormatMessageCallback formatMessageCallback, Exception exception); + + /// + /// Log a message with the level using a callback to obtain the message + /// + /// + /// Using this method avoids the cost of creating a message and evaluating message arguments + /// that probably won't be logged due to loglevel settings. + /// + /// An that supplies culture-specific formatting information. + /// A callback used by the logger to obtain the message if log level is matched + void Performance(IFormatProvider formatProvider, FormatMessageCallback formatMessageCallback); + + /// + /// Log a message with the level using a callback to obtain the message + /// + /// + /// Using this method avoids the cost of creating a message and evaluating message arguments + /// that probably won't be logged due to loglevel settings. + /// + /// An that supplies culture-specific formatting information. + /// A callback used by the logger to obtain the message if log level is matched + /// The exception to log, including its stack Debug. + void Performance(IFormatProvider formatProvider, FormatMessageCallback formatMessageCallback, Exception exception); + /// /// Checks if this logger is enabled for the level. /// @@ -671,6 +765,14 @@ bool IsWarnEnabled get; } + /// + /// Checks if this logger is enabled for the level. + /// + bool IsPerformanceEnabled + { + get; + } + /// /// Returns the global context for variables /// diff --git a/src/Common.Logging.Core/Logging/LogLevel.cs b/src/Common.Logging.Core/Logging/LogLevel.cs index 41ad5de..a943b16 100644 --- a/src/Common.Logging.Core/Logging/LogLevel.cs +++ b/src/Common.Logging.Core/Logging/LogLevel.cs @@ -38,28 +38,32 @@ public enum LogLevel /// Trace = 1, /// + /// A performance logging level + /// + Performance = 2, + /// /// A debug logging level /// - Debug = 2, + Debug = 4, /// /// A info logging level /// - Info = 4, + Info = 8, /// /// A warn logging level /// - Warn = 8, + Warn = 16, /// /// An error logging level /// - Error = 16, + Error = 32, /// /// A fatal logging level /// - Fatal = 32, + Fatal = 64, /// /// Do not log anything. /// - Off = 64, + Off = 128, } } \ No newline at end of file diff --git a/src/Common.Logging.EntLib60/Logging/EntLib/EntLibLogger.cs b/src/Common.Logging.EntLib60/Logging/EntLib/EntLibLogger.cs index 4d22f42..409ce4c 100644 --- a/src/Common.Logging.EntLib60/Logging/EntLib/EntLibLogger.cs +++ b/src/Common.Logging.EntLib60/Logging/EntLib/EntLibLogger.cs @@ -135,6 +135,11 @@ public override bool IsWarnEnabled get { return ShouldLog(WarningLogEntry); } } + /// + /// Gets a value indicating whether this instance is performance enabled. + /// + public override bool IsPerformanceEnabled { get { return false; } } + /// /// Gets a value indicating whether this instance is error enabled. /// diff --git a/src/Common.Logging.Portable/Logging/Factory/AbstractLogger.cs b/src/Common.Logging.Portable/Logging/Factory/AbstractLogger.cs index 4a76a95..d8bd47f 100644 --- a/src/Common.Logging.Portable/Logging/Factory/AbstractLogger.cs +++ b/src/Common.Logging.Portable/Logging/Factory/AbstractLogger.cs @@ -200,6 +200,14 @@ protected virtual WriteHandler GetWriteHandler() /// public abstract bool IsWarnEnabled { get; } + /// + /// Checks if this logger is enabled for the level. + /// + /// + /// Override this in your derived class to comply with the underlying logging system + /// + public abstract bool IsPerformanceEnabled { get; } + /// /// Checks if this logger is enabled for the level. /// @@ -1058,6 +1066,145 @@ public virtual void Fatal(IFormatProvider formatProvider, FormatMessageCallback #endregion + #region Performance + + /// + /// Log a message object with the level. + /// + /// The message object to log. + public virtual void Performance(object message) + { + if (IsPerformanceEnabled) + Write(LogLevel.Performance, message, null); + } + + /// + /// Log a message object with the level including + /// the stack Fatal of the passed + /// as a parameter. + /// + /// The message object to log. + /// The exception to log, including its stack Fatal. + public virtual void Performance(object message, Exception exception) + { + if (IsPerformanceEnabled) + Write(LogLevel.Performance, message, exception); + } + + /// + /// Log a message with the level. + /// + /// An that supplies culture-specific formatting Fatalrmation. + /// The format of the message object to log. + /// + [StringFormatMethod("format")] + public virtual void PerformanceFormat(IFormatProvider formatProvider, string format, params object[] args) + { + if (IsPerformanceEnabled) + Write(LogLevel.Performance, new StringFormatFormattedMessage(formatProvider, format, args), null); + } + + /// + /// Log a message with the level. + /// + /// An that supplies culture-specific formatting Fatalrmation. + /// The format of the message object to log. + /// The exception to log. + /// + [StringFormatMethod("format")] + public virtual void PerformanceFormat(IFormatProvider formatProvider, string format, Exception exception, params object[] args) + { + if (IsPerformanceEnabled) + Write(LogLevel.Performance, new StringFormatFormattedMessage(formatProvider, format, args), exception); + } + + /// + /// Log a message with the level. + /// + /// The format of the message object to log. + /// the list of format arguments + [StringFormatMethod("format")] + public virtual void PerformanceFormat(string format, params object[] args) + { + if (IsPerformanceEnabled) + Write(LogLevel.Performance, new StringFormatFormattedMessage(null, format, args), null); + } + + /// + /// Log a message with the level. + /// + /// The format of the message object to log. + /// The exception to log. + /// the list of format arguments + [StringFormatMethod("format")] + public virtual void PerformanceFormat(string format, Exception exception, params object[] args) + { + if (IsPerformanceEnabled) + Write(LogLevel.Performance, new StringFormatFormattedMessage(null, format, args), exception); + } + + /// + /// Log a message with the level using a callback to obtain the message + /// + /// + /// Using this method avoids the cost of creating a message and evaluating message arguments + /// that probably won't be logged due to loglevel settings. + /// + /// A callback used by the logger to obtain the message if log level is matched + public virtual void Performance(FormatMessageCallback formatMessageCallback) + { + if (IsPerformanceEnabled) + Write(LogLevel.Performance, new FormatMessageCallbackFormattedMessage(formatMessageCallback), null); + } + + /// + /// Log a message with the level using a callback to obtain the message + /// + /// + /// Using this method avoids the cost of creating a message and evaluating message arguments + /// that probably won't be logged due to loglevel settings. + /// + /// A callback used by the logger to obtain the message if log level is matched + /// The exception to log, including its stack Fatal. + public virtual void Performance(FormatMessageCallback formatMessageCallback, Exception exception) + { + if (IsPerformanceEnabled) + Write(LogLevel.Performance, new FormatMessageCallbackFormattedMessage(formatMessageCallback), exception); + } + + /// + /// Log a message with the level using a callback to obtain the message + /// + /// + /// Using this method avoids the cost of creating a message and evaluating message arguments + /// that probably won't be logged due to loglevel settings. + /// + /// An that supplies culture-specific formatting information. + /// A callback used by the logger to obtain the message if log level is matched + public virtual void Performance(IFormatProvider formatProvider, FormatMessageCallback formatMessageCallback) + { + if (IsPerformanceEnabled) + Write(LogLevel.Performance, new FormatMessageCallbackFormattedMessage(formatProvider, formatMessageCallback), null); + } + + /// + /// Log a message with the level using a callback to obtain the message + /// + /// + /// Using this method avoids the cost of creating a message and evaluating message arguments + /// that probably won't be logged due to loglevel settings. + /// + /// An that supplies culture-specific formatting information. + /// A callback used by the logger to obtain the message if log level is matched + /// The exception to log, including its stack Fatal. + public virtual void Performance(IFormatProvider formatProvider, FormatMessageCallback formatMessageCallback, Exception exception) + { + if (IsPerformanceEnabled) + Write(LogLevel.Performance, new FormatMessageCallbackFormattedMessage(formatProvider, formatMessageCallback), exception); + } + + #endregion + /// /// Returns the global context for variables /// diff --git a/src/Common.Logging.Portable/Logging/Simple/AbstractSimpleLogger.cs b/src/Common.Logging.Portable/Logging/Simple/AbstractSimpleLogger.cs index 31806f9..bead8b9 100644 --- a/src/Common.Logging.Portable/Logging/Simple/AbstractSimpleLogger.cs +++ b/src/Common.Logging.Portable/Logging/Simple/AbstractSimpleLogger.cs @@ -209,6 +209,16 @@ public override bool IsTraceEnabled get { return IsLevelEnabled(LogLevel.Trace); } } + /// + /// Returns if the current is greater than or + /// equal to . If it is, only messages with a of + /// will be sent to . + /// + public override bool IsPerformanceEnabled + { + get { return IsLevelEnabled(LogLevel.Performance); } + } + /// /// Returns if the current is greater than or /// equal to . If it is, all messages will be sent to . diff --git a/src/Common.Logging.Portable/Logging/Simple/NoOpLogger.cs b/src/Common.Logging.Portable/Logging/Simple/NoOpLogger.cs index 773127c..0f26b0e 100644 --- a/src/Common.Logging.Portable/Logging/Simple/NoOpLogger.cs +++ b/src/Common.Logging.Portable/Logging/Simple/NoOpLogger.cs @@ -68,6 +68,14 @@ public bool IsWarnEnabled get { return false; } } + /// + /// Always returns . + /// + public bool IsPerformanceEnabled + { + get { return false; } + } + /// /// Always returns . /// @@ -728,7 +736,114 @@ public void Fatal(IFormatProvider formatProvider, FormatMessageCallback formatMe } #endregion - + + #region Fatal + + /// + /// Ignores message. + /// + /// + public void Performance(object message) + { + // NOP - no operation + } + + /// + /// Ignores message. + /// + /// + /// + public void Performance(object message, Exception e) + { + // NOP - no operation + } + + /// + /// Ignores message. + /// + /// The format of the message object to log. + /// + public void PerformanceFormat(string format, params object[] args) + { + // NOP - no operation + } + + /// + /// Ignores message. + /// + /// The format of the message object to log. + /// The exception to log. + /// the list of message format arguments + public void PerformanceFormat(string format, Exception exception, params object[] args) + { + // NOP - no operation + } + + /// + /// Ignores message. + /// + /// An that supplies culture-specific formatting Fatalrmation. + /// The format of the message object to log. + /// the list of message format arguments + public void PerformanceFormat(IFormatProvider formatProvider, string format, params object[] args) + { + // NOP - no operation + } + + /// + /// Ignores message. + /// + /// An that supplies culture-specific formatting Fatalrmation. + /// The format of the message object to log. + /// The exception to log. + /// the list of message format arguments + public void PerformanceFormat(IFormatProvider formatProvider, string format, Exception exception, params object[] args) + { + // NOP - no operation + } + + /// + /// Ignores message. + /// + /// A callback used by the logger to obtain the message if log level is matched + public void Performance(FormatMessageCallback formatMessageCallback) + { + // NOP - no operation + } + + /// + /// Ignores message. + /// + /// A callback used by the logger to obtain the message if log level is matched + /// The exception to log, including its stack Fatal. + public void Performance(FormatMessageCallback formatMessageCallback, Exception exception) + { + // NOP - no operation + } + + /// + /// Ignores message. + /// + /// An that supplies culture-specific formatting information. + /// A callback used by the logger to obtain the message if log level is matched + public void Performance(IFormatProvider formatProvider, FormatMessageCallback formatMessageCallback) + { + // NOP - no operation + } + + /// + /// Ignores message. + /// + /// An that supplies culture-specific formatting information. + /// A callback used by the logger to obtain the message if log level is matched + /// The exception to log, including its stack Fatal. + public void Performance(IFormatProvider formatProvider, FormatMessageCallback formatMessageCallback, Exception exception) + { + // NOP - no operation + } + + #endregion + /// /// Returns the global context for variables /// diff --git a/test/Common.Logging.Tests/Logging/Factory/AbstractLoggerTests.cs b/test/Common.Logging.Tests/Logging/Factory/AbstractLoggerTests.cs index 5e4d3ae..f9f8fed 100644 --- a/test/Common.Logging.Tests/Logging/Factory/AbstractLoggerTests.cs +++ b/test/Common.Logging.Tests/Logging/Factory/AbstractLoggerTests.cs @@ -473,6 +473,14 @@ public override bool IsWarnEnabled { get { return true; } } + + /// + /// Checks if this logger is enabled for the level. + /// + public override bool IsPerformanceEnabled + { + get { return true; } + } } } } \ No newline at end of file From cd746bcbea880d83e8071017da13d190ef047151 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 5 Jun 2015 15:01:52 -0400 Subject: [PATCH 3/3] Revert "Added Resharper support on ILog" This reverts commit 5423e94a3f340dae225a066cd274af07725da23d. --- src/Common.Logging.Core/Logging/ILog.cs | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/src/Common.Logging.Core/Logging/ILog.cs b/src/Common.Logging.Core/Logging/ILog.cs index c78d84a..d317824 100644 --- a/src/Common.Logging.Core/Logging/ILog.cs +++ b/src/Common.Logging.Core/Logging/ILog.cs @@ -19,7 +19,6 @@ #endregion using System; -using Common.Logging.Factory; using FormatMessageCallback = System.Action; namespace Common.Logging @@ -73,7 +72,6 @@ public interface ILog /// /// The format of the message object to log. /// the list of format arguments - [StringFormatMethod("format")] void TraceFormat(string format, params object[] args); /// @@ -82,7 +80,6 @@ public interface ILog /// The format of the message object to log. /// The exception to log. /// the list of format arguments - [StringFormatMethod("format")] void TraceFormat(string format, Exception exception, params object[] args); /// @@ -91,7 +88,6 @@ public interface ILog /// An that supplies culture-specific formatting information. /// The format of the message object to log. /// - [StringFormatMethod("format")] void TraceFormat(IFormatProvider formatProvider, string format, params object[] args); /// @@ -101,7 +97,6 @@ public interface ILog /// The format of the message object to log. /// The exception to log. /// - [StringFormatMethod("format")] void TraceFormat(IFormatProvider formatProvider, string format, Exception exception, params object[] args); /// @@ -168,7 +163,6 @@ public interface ILog /// /// The format of the message object to log. /// the list of format arguments - [StringFormatMethod("format")] void DebugFormat(string format, params object[] args); /// @@ -177,7 +171,6 @@ public interface ILog /// The format of the message object to log. /// The exception to log. /// the list of format arguments - [StringFormatMethod("format")] void DebugFormat(string format, Exception exception, params object[] args); /// @@ -186,7 +179,6 @@ public interface ILog /// An that supplies culture-specific formatting information. /// The format of the message object to log. /// - [StringFormatMethod("format")] void DebugFormat(IFormatProvider formatProvider, string format, params object[] args); /// @@ -196,7 +188,6 @@ public interface ILog /// The format of the message object to log. /// The exception to log. /// - [StringFormatMethod("format")] void DebugFormat(IFormatProvider formatProvider, string format, Exception exception, params object[] args); /// @@ -263,7 +254,6 @@ public interface ILog /// /// The format of the message object to log. /// the list of format arguments - [StringFormatMethod("format")] void InfoFormat(string format, params object[] args); /// @@ -272,7 +262,6 @@ public interface ILog /// The format of the message object to log. /// The exception to log. /// the list of format arguments - [StringFormatMethod("format")] void InfoFormat(string format, Exception exception, params object[] args); /// @@ -281,7 +270,6 @@ public interface ILog /// An that supplies culture-specific formatting information. /// The format of the message object to log. /// - [StringFormatMethod("format")] void InfoFormat(IFormatProvider formatProvider, string format, params object[] args); /// @@ -291,7 +279,6 @@ public interface ILog /// The format of the message object to log. /// The exception to log. /// - [StringFormatMethod("format")] void InfoFormat(IFormatProvider formatProvider, string format, Exception exception, params object[] args); /// @@ -358,7 +345,6 @@ public interface ILog /// /// The format of the message object to log. /// the list of format arguments - [StringFormatMethod("format")] void WarnFormat(string format, params object[] args); /// @@ -367,7 +353,6 @@ public interface ILog /// The format of the message object to log. /// The exception to log. /// the list of format arguments - [StringFormatMethod("format")] void WarnFormat(string format, Exception exception, params object[] args); /// @@ -376,7 +361,6 @@ public interface ILog /// An that supplies culture-specific formatting information. /// The format of the message object to log. /// - [StringFormatMethod("format")] void WarnFormat(IFormatProvider formatProvider, string format, params object[] args); /// @@ -386,7 +370,6 @@ public interface ILog /// The format of the message object to log. /// The exception to log. /// - [StringFormatMethod("format")] void WarnFormat(IFormatProvider formatProvider, string format, Exception exception, params object[] args); /// @@ -453,7 +436,6 @@ public interface ILog /// /// The format of the message object to log. /// the list of format arguments - [StringFormatMethod("format")] void ErrorFormat(string format, params object[] args); /// @@ -462,7 +444,6 @@ public interface ILog /// The format of the message object to log. /// The exception to log. /// the list of format arguments - [StringFormatMethod("format")] void ErrorFormat(string format, Exception exception, params object[] args); /// @@ -471,7 +452,6 @@ public interface ILog /// An that supplies culture-specific formatting information. /// The format of the message object to log. /// - [StringFormatMethod("format")] void ErrorFormat(IFormatProvider formatProvider, string format, params object[] args); /// @@ -481,7 +461,6 @@ public interface ILog /// The format of the message object to log. /// The exception to log. /// - [StringFormatMethod("format")] void ErrorFormat(IFormatProvider formatProvider, string format, Exception exception, params object[] args); /// @@ -548,7 +527,6 @@ public interface ILog /// /// The format of the message object to log. /// the list of format arguments - [StringFormatMethod("format")] void FatalFormat(string format, params object[] args); /// @@ -557,7 +535,6 @@ public interface ILog /// The format of the message object to log. /// The exception to log. /// the list of format arguments - [StringFormatMethod("format")] void FatalFormat(string format, Exception exception, params object[] args); /// @@ -566,7 +543,6 @@ public interface ILog /// An that supplies culture-specific formatting information. /// The format of the message object to log. /// - [StringFormatMethod("format")] void FatalFormat(IFormatProvider formatProvider, string format, params object[] args); /// @@ -576,7 +552,6 @@ public interface ILog /// The format of the message object to log. /// The exception to log. /// - [StringFormatMethod("format")] void FatalFormat(IFormatProvider formatProvider, string format, Exception exception, params object[] args); ///