I use Elmah to register errors in the database and send an error message. I created a filter to not send 404 page errors by email, but it also filters them from the database.
How to create a filter to prevent certain errors from being sent by email, but to allow them to register in the database?
I would prefer a web.config solution.
Update:
I am not against the decision.
source share