public class CustomHandleErrorAttribute : HandleErrorAttribute { public override void OnException(ExceptionContext filterContext) { //logging } }
public class Base_Controller : Controller { protected override void OnException(ExceptionContext filterContext) { //Logging; } }
public class Base_Application : System.Web.HttpApplication { protected void Application_Error(object sender, EventArgs e) { //Logging } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)