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); } }
public void Error(Exception exception, string message) { try { if (TracingLevel.CanLogError(this)) { WriteLog(TracingLevel.Error, message, exception); } } catch (Exception ex) { Trace.Write(ex); } }