/// <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); } }