public override void OnActionExecuted(ActionExecutedContext filterContext) { var currentUser = filterContext.HttpContext.Session["CurrentUser"] as CurrentUser; SHLog4net.LogInfo(currentUser?.Sys_User.LoginName + logInfo); base.OnActionExecuted(filterContext); }
public void OnException(ExceptionContext filterContext) { Exception ex = filterContext.Exception; SHLog4net.LogError(ex); }