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