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