/// <summary> /// LogError used for logging various types of information. /// </summary> /// <param name="ex">Exception occured.</param> /// <param name="customException">Custom exception text.</param> /// <param name="level">Error level.</param> public void LogError(Exception ex, string customException, Framework.Enums.Enums.ErrorLevel level) { Logger.Log(ex, customException, level); }
/// <summary> /// Used for logging the web service errors. /// </summary> /// <param name="ex">Exception generated.</param> /// <param name="customMessage">Custom message.</param> /// <param name="errorLevel">Error level.</param> /// <param name="errCode">Error code.</param> /// <returns>Fault exception.</returns> public System.ServiceModel.FaultException LogWcfError(Exception ex, string customMessage, Framework.Enums.Enums.ErrorLevel errorLevel, string errCode) { Logger.Log(ex, customMessage, errorLevel); return(new System.ServiceModel.FaultException(new System.ServiceModel.FaultReason(customMessage), new System.ServiceModel.FaultCode(errCode))); }