private static void LogImpl(CorrelatedExceptionEventArgs e)
 {
     try
     {
         using (var sw = new StreamWriter(Paths.BlackBoxLogFile, true))
         {
             sw.WriteLine(string.Format("Unhandled exception reported at: {0}", DateTime.Now));
             sw.WriteLine(e.Message);
             sw.WriteLine();
             sw.WriteLine(e.GetDescription());
             sw.WriteLine();
         }
     }
     catch
     { 
         // eat any exceptions
     }
 }
        private static void HandleUnhandledExceptionNotification(object sender, CorrelatedExceptionEventArgs e)
        {
            if (e.IsRecursive)
                return;

            RuntimeAccessor.Logger.Log(LogSeverity.Error, "Internal error: " + e.GetDescription());
        }
 private void OnUnhandledException(object sender, CorrelatedExceptionEventArgs e)
 {
     tappedLogger.RecordLogMessage(LogSeverity.Error, e.GetDescription(), null);
 }