Exemple #1
0
 public static void DebugException(this ITcLog logger, string message, Exception exception)
 {
     if (logger.IsDebugEnabled())
     {
         logger.Log(TcLogLevel.Debug, message.AsFunc(), exception);
     }
 }
Exemple #2
0
 public static void Error(this ITcLog logger, string message)
 {
     if (logger.IsErrorEnabled())
     {
         logger.Log(TcLogLevel.Error, message.AsFunc());
     }
 }
Exemple #3
0
 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);
     }
 }
Exemple #4
0
 public static void Warn(this ITcLog logger, string message)
 {
     if (logger.IsWarnEnabled())
     {
         logger.Log(TcLogLevel.Warn, message.AsFunc());
     }
 }
Exemple #5
0
 public static void Debug(this ITcLog logger, string message)
 {
     if (logger.IsDebugEnabled())
     {
         logger.Log(TcLogLevel.Debug, message.AsFunc());
     }
 }
Exemple #6
0
 public static void Trace(this ITcLog logger, string message)
 {
     if (logger.IsTraceEnabled())
     {
         logger.Log(TcLogLevel.Trace, message.AsFunc());
     }
 }
Exemple #7
0
 public static void Info(this ITcLog logger, string message)
 {
     if (logger.IsInfoEnabled())
     {
         logger.Log(TcLogLevel.Info, message.AsFunc());
     }
 }
Exemple #8
0
 public static void Fatal(this ITcLog logger, string message)
 {
     if (logger.IsFatalEnabled())
     {
         logger.Log(TcLogLevel.Fatal, message.AsFunc());
     }
 }
Exemple #9
0
 public static void Error(this ITcLog logger, Func <string> messageFunc)
 {
     GuardAgainstNullLogger(logger);
     logger.Log(TcLogLevel.Error, messageFunc);
 }
Exemple #10
0
 private static void LogFormat(this ITcLog logger, TcLogLevel logLevel, string message, params object[] args)
 {
     logger.Log(logLevel, message.AsFunc(), null, args);
 }
Exemple #11
0
 public static void Fatal(this ITcLog logger, Func <string> messageFunc)
 {
     logger.Log(TcLogLevel.Fatal, messageFunc);
 }