using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SuperSocket.SocketBase.Logging { /// /// Log interface /// public interface ILog { /// /// Gets a value indicating whether this instance is debug enabled. /// /// /// true if this instance is debug enabled; otherwise, false. /// bool IsDebugEnabled { get; } /// /// Gets a value indicating whether this instance is error enabled. /// /// /// true if this instance is error enabled; otherwise, false. /// bool IsErrorEnabled { get; } /// /// Gets a value indicating whether this instance is fatal enabled. /// /// /// true if this instance is fatal enabled; otherwise, false. /// bool IsFatalEnabled { get; } /// /// Gets a value indicating whether this instance is info enabled. /// /// /// true if this instance is info enabled; otherwise, false. /// bool IsInfoEnabled { get; } /// /// Gets a value indicating whether this instance is warn enabled. /// /// /// true if this instance is warn enabled; otherwise, false. /// bool IsWarnEnabled { get; } /// /// Logs the debug message. /// /// The message. void Debug(object message); /// /// Logs the debug message. /// /// The message. /// The exception. void Debug(object message, Exception exception); /// /// Logs the debug message. /// /// The format. /// The arg0. void DebugFormat(string format, object arg0); /// /// Logs the debug message. /// /// The format. /// The args. void DebugFormat(string format, params object[] args); /// /// Logs the debug message. /// /// The provider. /// The format. /// The args. void DebugFormat(IFormatProvider provider, string format, params object[] args); /// /// Logs the debug message. /// /// The format. /// The arg0. /// The arg1. void DebugFormat(string format, object arg0, object arg1); /// /// Logs the debug message. /// /// The format. /// The arg0. /// The arg1. /// The arg2. void DebugFormat(string format, object arg0, object arg1, object arg2); /// /// Logs the error message. /// /// The message. void Error(object message); /// /// Logs the error message. /// /// The message. /// The exception. void Error(object message, Exception exception); /// /// Logs the error message. /// /// The format. /// The arg0. void ErrorFormat(string format, object arg0); /// /// Logs the error message. /// /// The format. /// The args. void ErrorFormat(string format, params object[] args); /// /// Logs the error message. /// /// The provider. /// The format. /// The args. void ErrorFormat(IFormatProvider provider, string format, params object[] args); /// /// Logs the error message. /// /// The format. /// The arg0. /// The arg1. void ErrorFormat(string format, object arg0, object arg1); /// /// Logs the error message. /// /// The format. /// The arg0. /// The arg1. /// The arg2. void ErrorFormat(string format, object arg0, object arg1, object arg2); /// /// Logs the fatal error message. /// /// The message. void Fatal(object message); /// /// Logs the fatal error message. /// /// The message. /// The exception. void Fatal(object message, Exception exception); /// /// Logs the fatal error message. /// /// The format. /// The arg0. void FatalFormat(string format, object arg0); /// /// Logs the fatal error message. /// /// The format. /// The args. void FatalFormat(string format, params object[] args); /// /// Logs the fatal error message. /// /// The provider. /// The format. /// The args. void FatalFormat(IFormatProvider provider, string format, params object[] args); /// /// Logs the fatal error message. /// /// The format. /// The arg0. /// The arg1. void FatalFormat(string format, object arg0, object arg1); /// /// Logs the fatal error message. /// /// The format. /// The arg0. /// The arg1. /// The arg2. void FatalFormat(string format, object arg0, object arg1, object arg2); /// /// Logs the info message. /// /// The message. void Info(object message); /// /// Logs the info message. /// /// The message. /// The exception. void Info(object message, Exception exception); /// /// Logs the info message. /// /// The format. /// The arg0. void InfoFormat(string format, object arg0); /// /// Logs the info message. /// /// The format. /// The args. void InfoFormat(string format, params object[] args); /// /// Logs the info message. /// /// The provider. /// The format. /// The args. void InfoFormat(IFormatProvider provider, string format, params object[] args); /// /// Logs the info message. /// /// The format. /// The arg0. /// The arg1. void InfoFormat(string format, object arg0, object arg1); /// /// Logs the info message. /// /// The format. /// The arg0. /// The arg1. /// The arg2. void InfoFormat(string format, object arg0, object arg1, object arg2); /// /// Logs the warning message. /// /// The message. void Warn(object message); /// /// Logs the warning message. /// /// The message. /// The exception. void Warn(object message, Exception exception); /// /// Logs the warning message. /// /// The format. /// The arg0. void WarnFormat(string format, object arg0); /// /// Logs the warning message. /// /// The format. /// The args. void WarnFormat(string format, params object[] args); /// /// Logs the warning message. /// /// The provider. /// The format. /// The args. void WarnFormat(IFormatProvider provider, string format, params object[] args); /// /// Logs the warning message. /// /// The format. /// The arg0. /// The arg1. void WarnFormat(string format, object arg0, object arg1); /// /// Logs the warning message. /// /// The format. /// The arg0. /// The arg1. /// The arg2. void WarnFormat(string format, object arg0, object arg1, object arg2); } }