示例#1
0
 public void Warn(Exception exception, string message)
 {
     try {
         if (TracingLevel.CanLogWarn(this))
         {
             WriteLog(TracingLevel.Warn, message, exception);
         }
     } catch (Exception ex) {
         Trace.Write(ex);
     }
 }
示例#2
0
 public void WarnFmtEx(Exception exception, string message, params object[] args)
 {
     try {
         if (TracingLevel.CanLogWarn(this))
         {
             WriteLog(TracingLevel.Warn, string.Format(message, args), exception);
         }
     } catch (Exception ex) {
         Trace.Write(ex);
     }
 }
示例#3
0
 public void Warn(string from, string to, string callId, string cseq, string message)
 {
     try {
         if (TracingLevel.CanLogWarn(this))
         {
             WriteLog(TracingLevel.Warn, message, from, to, callId, cseq);
         }
     } catch (Exception ex) {
         Trace.Write(ex);
     }
 }