public void LogException(object source, Exception ex) { if (ShouldLogException(ex)) { Logger.Instance.LogException(source, ex); } }