Exemple #1
0
 public static void ErrorException(this ITcLog logger, string message, Exception exception, params object[] formatParams)
 {
     if (logger.IsErrorEnabled())
     {
         logger.Log(TcLogLevel.Error, message.AsFunc(), exception, formatParams);
     }
 }
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 ErrorFormat(this ITcLog logger, string message, params object[] args)
 {
     if (logger.IsErrorEnabled())
     {
         logger.LogFormat(TcLogLevel.Error, message, args);
     }
 }