示例#1
0
 public void ErrorFmtEx(Exception exception, string message, params object[] args)
 {
     try {
         if (TracingLevel.CanLogError(this))
         {
             WriteLog(TracingLevel.Error, string.Format(message, args), exception);
         }
     } catch (Exception ex) {
         Trace.Write(ex);
     }
 }
示例#2
0
 public void Error(Exception exception, string message)
 {
     try {
         if (TracingLevel.CanLogError(this))
         {
             WriteLog(TracingLevel.Error, message, exception);
         }
     } catch (Exception ex) {
         Trace.Write(ex);
     }
 }