public override void OnException(ExceptionContext filterContext)
        {
            FileLogger logger = new FileLogger();
            logger.LogException(filterContext.Exception);

            base.OnException(filterContext);
            //
            //filterContext.Result = new ContentResult()
            //{
            //    Content="Sorry for the Error"
            //};
        }
예제 #2
0
 public override void OnException(ExceptionContext filterContext)
 {
     FileLogger logger = new FileLogger();
     logger.LogException(filterContext.Exception);
     base.OnException(filterContext);
 }