Пример #1
0
 /// <summary>
 /// Logs the specified background error message.
 /// </summary>
 /// <param name="log">The error log.</param>
 public static void Log(BackgroundErrorLog log)
 {
     try
     {
         Current.Log(log);
     } // ReSharper disable once EmptyGeneralCatchClause
     catch
     {
     }
 }
Пример #2
0
 /// <summary>
 /// Calls the <see cref="IBackgroundErrorLogger.Log"/> method on each of the loggers that
 /// were passed in to the constructor of this object.
 /// </summary>
 /// <param name="log">The error log.</param>
 public void Log(BackgroundErrorLog log)
 {
     foreach (var logger in _loggers)
     {
         try
         {
             logger.Log(log);
         } // ReSharper disable once EmptyGeneralCatchClause
         catch
         {
         }
     }
 }
 /// <summary>
 /// Calls the <see cref="IBackgroundErrorLogger.Log"/> method on each of the loggers that
 /// were passed in to the constructor of this object.
 /// </summary>
 /// <param name="log">The error log.</param>
 public void Log(BackgroundErrorLog log)
 {
     foreach (var logger in _loggers)
     {
         try
         {
             logger.Log(log);
         } // ReSharper disable once EmptyGeneralCatchClause
         catch
         {
         }
     }
 }
 /// <summary>
 /// Logs the specified error to the Windows Event Log.
 /// </summary>
 /// <param name="log">The error log.</param>
 public void Log(BackgroundErrorLog log)
 {
     _logAction.Value(log);
 }
 /// <summary>
 /// Logs the specified error to the Windows Event Log.
 /// </summary>
 /// <param name="log">The error log.</param>
 public void Log(BackgroundErrorLog log)
 {
     _logAction.Value(log);
 }
Пример #6
0
 /// <summary>
 /// Logs the specified error to Standard Out.
 /// </summary>
 /// <param name="log">The error log.</param>
 public void Log(BackgroundErrorLog log)
 {
     Console.Out.WriteLine(log.Format());
     Console.Out.WriteLine("--------------------------------------------------------------------------------");
 }
 /// <summary>
 /// Logs the specified background error message.
 /// </summary>
 /// <param name="log">The error log.</param>
 public static void Log(BackgroundErrorLog log)
 {
     try
     {
         Current.Log(log);
     } // ReSharper disable once EmptyGeneralCatchClause
     catch
     {
     }
 }