예제 #1
0
        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);
        }
예제 #2
0
        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);
        }