public void LogException(string message, string callstack) { ExceptionDataObject exceptionObject = new ExceptionDataObject { Message = message, CallStack = callstack, ExceptionType = "JavaScript", UserAgent = Request.UserAgent, UserId = (int?)Session[SessionKeys.USER_ID] }; ProcessFactory.GetExceptionProcess().Insert(exceptionObject); }
private void LogException(string message, string type, Exception exception) { UserPrincipal user = GetUserPrincipal(); ExceptionDataObject exceptionObject = new ExceptionDataObject { Message = message, CallStack = exception.StackTrace, ExceptionType = type, UserAgent = Request.UserAgent, UserId = user != null ? (int?)user.Id : null }; ProcessFactory.GetExceptionProcess().Insert(exceptionObject); }