示例#1
0
 public void Debug(string message, string source = null)
 {
     try {
         _log.Debug(message, source);
     } catch (Exception ex) {
         try {
             _fallbackLog.Error("Error writing to log.", null, ex);
             _fallbackLog.Debug(message, source);
         } catch {}
     }
 }
 public static void FormattedDebug(this IExceptionlessLog log, string format, params object[] args)
 {
     log.Debug(String.Format(format, args));
 }
 public static void FormattedDebug(this IExceptionlessLog log, Type source, string format, params object[] args)
 {
     log.Debug(String.Format(format, args), GetSourceName(source));
 }
 public static void Debug(this IExceptionlessLog log, Type source, string message)
 {
     log.Debug(message, GetSourceName(source));
 }