コード例 #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
         {
         }
     }
 }
コード例 #3
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
         {
         }
     }
 }
コード例 #4
0
 /// <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);
 }
コード例 #5
0
 /// <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("--------------------------------------------------------------------------------");
 }
コード例 #7
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
     {
     }
 }