Beispiel #1
0
 public void LogException(string message, Exception ex, XOFFErrorSeverity severity)
 {
     try
     {
         Write(message);
         LogException(ex, severity);
     }
     catch (Exception e)
     {
         //logger should not throw any exceptions that could crash the app
     }
 }
Beispiel #2
0
 public void LogException(string section, AggregateException aggEx, XOFFErrorSeverity severity)
 {
     try
     {
         Write(string.Format("({1}) Aggregate: {0}", aggEx.Message, section));
         foreach (var ex in aggEx.InnerExceptions)
         {
             LogException(ex, severity);
         }
         Write("Aggregate Complete");
     }
     catch (Exception ex)
     {
         //logger should not throw any exceptions that could crash the app
     }
 }
Beispiel #3
0
        public void LogException(Exception ex, XOFFErrorSeverity severity)
        {
            try
            {
                Write("Printing out Exception");
                int level = 0;

                do
                {
                    Write(string.Format("Level {0}: {1} ({2})", level, ex.Message, severity.ToString()));
                    Write(ex.StackTrace);

                    ex     = ex.InnerException;
                    level += 1;
                } while (ex != null);

                Write("Done Printing out Exception");
            }
            catch (Exception e)
            {
                //logger should not throw any exceptions that could crash the app
            }
        }
Beispiel #4
0
 public void LogException(string message, Exception ex, XOFFErrorSeverity severity)
 {
 }
Beispiel #5
0
 public void LogException(Exception ex, XOFFErrorSeverity severity)
 {
 }
Beispiel #6
0
 public void LogException(string section, AggregateException aggEx, XOFFErrorSeverity severity)
 {
 }