public static void ClearLog(int PortalID)
 {
     try
     {
         ErrorLogDataProvider.ClearLog(PortalID);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public static void DeleteLogByLogID(int ID, int PortalID, string UserName)
 {
     try
     {
         ErrorLogDataProvider.DeleteLogByLogID(ID, PortalID, UserName);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #3
0
 /// <summary>
 /// Save log.
 /// </summary>
 /// <param name="logTypeID">logTypeID</param>
 /// <param name="severity">severity</param>
 /// <param name="message">message</param>
 /// <param name="exception">exception</param>
 /// <param name="clientIPAddress">clientIPAddress</param>
 /// <param name="pageURL">pageURL</param>
 /// <param name="isActive">isActive</param>
 /// <param name="portalID">portalID</param>
 /// <param name="addedBy">addedBy</param>
 /// <returns>Return LogID</returns>
 public int InsertLog(int logTypeID, int severity, string message, string exception, string clientIPAddress, string pageURL, bool isActive, int portalID, string addedBy)
 {
     try
     {
         ErrorLogDataProvider objProvider = new ErrorLogDataProvider();
         return(objProvider.InsertLog(logTypeID, severity, message, exception, clientIPAddress, pageURL, isActive, portalID, addedBy));
     }
     catch (Exception)
     {
         throw;
     }
 }
Example #4
0
 /// <summary>
 /// Clears error log based on portal ID.
 /// </summary>
 /// <param name="PortalID">PortalID</param>
 public void ClearLog(int PortalID)
 {
     try
     {
         ErrorLogDataProvider objProvider = new ErrorLogDataProvider();
         objProvider.ClearLog(PortalID);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
        public int InsertLog(int logTypeID, int severity, string message, string exception, string clientIPAddress, string pageURL, bool isActive, int portalID, string addedBy)
        {
            try
            {
                ErrorLogDataProvider objProvider = new ErrorLogDataProvider();
                return objProvider.InsertLog(logTypeID, severity, message, exception, clientIPAddress, pageURL, isActive, portalID, addedBy);
            }
            catch (Exception)
            {

                throw;
            }
        }
        public void DeleteLogByLogID(int ID, int PortalID, string UserName)
        {
            try
            {
                ErrorLogDataProvider objProvider = new ErrorLogDataProvider();
                objProvider.DeleteLogByLogID(ID, PortalID, UserName);
            }
            catch (Exception ex)
            {

                throw ex;
            }
        }
        public void ClearLog(int PortalID)
        {
            try
            {
                ErrorLogDataProvider objProvider = new ErrorLogDataProvider();
                objProvider.ClearLog(PortalID);
            }
            catch (Exception ex)
            {

                throw ex;
            }
        }
        public static int InsertLog(int logTypeID, int severity, string message, string exception, string clientIPAddress, string pageURL, bool isActive, int portalID, string addedBy)
        {
            try
            {
                return(ErrorLogDataProvider.InsertLog(logTypeID, severity, message, exception, clientIPAddress, pageURL, isActive, portalID, addedBy));
            }
            //catch (SqlException sqex)
            //{
            //    HttpContext.Current.Response.Redirect("~/DatabaseError.htm");
            //    throw sqex;

            //}
            catch (Exception)
            {
                throw;
            }
        }