i'm trying to log 404 erros from my derived class from HandleErrorAttribute.
Here is my class:
public class LogExceptionAttribute : HandleErrorAttribute
{
public override void OnException(ExceptionContext exceptionContext)
{
Log.LogException(exceptionContext.Exception, exceptionContext.Exception.Message);
base.OnException(exceptionContext);
}
}
I get all exceptions in application, but i'm not getting 404 erros. I want to get all kind of erros, exceptions.