public static void DebugException(this ITcLog logger, string message, Exception exception) { if (logger.IsDebugEnabled()) { logger.Log(TcLogLevel.Debug, message.AsFunc(), exception); } }
public static void Error(this ITcLog logger, string message) { if (logger.IsErrorEnabled()) { logger.Log(TcLogLevel.Error, message.AsFunc()); } }
public static void DebugException(this ITcLog logger, string message, Exception exception, params object[] formatParams) { if (logger.IsDebugEnabled()) { logger.Log(TcLogLevel.Debug, message.AsFunc(), exception, formatParams); } }
public static void Warn(this ITcLog logger, string message) { if (logger.IsWarnEnabled()) { logger.Log(TcLogLevel.Warn, message.AsFunc()); } }
public static void Debug(this ITcLog logger, string message) { if (logger.IsDebugEnabled()) { logger.Log(TcLogLevel.Debug, message.AsFunc()); } }
public static void Trace(this ITcLog logger, string message) { if (logger.IsTraceEnabled()) { logger.Log(TcLogLevel.Trace, message.AsFunc()); } }
public static void Info(this ITcLog logger, string message) { if (logger.IsInfoEnabled()) { logger.Log(TcLogLevel.Info, message.AsFunc()); } }
public static void Fatal(this ITcLog logger, string message) { if (logger.IsFatalEnabled()) { logger.Log(TcLogLevel.Fatal, message.AsFunc()); } }
public static void Error(this ITcLog logger, Func <string> messageFunc) { GuardAgainstNullLogger(logger); logger.Log(TcLogLevel.Error, messageFunc); }
private static void LogFormat(this ITcLog logger, TcLogLevel logLevel, string message, params object[] args) { logger.Log(logLevel, message.AsFunc(), null, args); }
public static void Fatal(this ITcLog logger, Func <string> messageFunc) { logger.Log(TcLogLevel.Fatal, messageFunc); }