1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| using System.Web;
| using System.Web.Mvc;
| using log4net;
|
| namespace HH.WMS.WebUI
| {
| public class MvcHandleErrorAttribute : HandleErrorAttribute
| {
| public override void OnException(ExceptionContext filterContext)
| {
| ILog log = LogManager.GetLogger(filterContext.RequestContext.HttpContext.Request.Url.LocalPath);
| log.Error(filterContext.Exception);
| base.OnException(filterContext);
| }
| }
| }
|
|