Ejemplo n.º 1
0
 /// <summary>This method will take a given exception and log it</summary>
 /// <param name="ex">The current exception</param>
 /// <example>
 ///     try
 ///     {
 ///     throw new Exception();
 ///     }
 ///     catch (Exception ex)
 ///     {
 ///     ExceptionHandler.Instance.HandleException(ex);
 ///     }
 /// </example>
 public static void HandleException(BaseException ex)
 {
     if (Logger != null)
     {
         // log all exceptions at Error for initial implementation
         Logger.Log(LogLevel.Error, ex.AdditionalDataForLogging(), ex);
     }
 }