I'm using Elmah to log errors within the DB and send an e-mail from the error. I've produced a filter not to send 404 page errors by email but this is blocking them in the DB.
How do you produce a filter to avoid certain errors being sent by email and can permit them to be drenched within the DB?
I'd should you prefer a web.config solution.
I would not mind any solution.
In web.config elmah section add:
<errorFilter> <test> <and> <equal binding="HttpStatusCode" value="404" type="Int32" /> <regex binding="FilterSourceType.Name" pattern="mail" /> </and> </test> </errorFilter>
You'll find the wiki here: