Is there an easy way to log all exceptions in an ASP.NET application? I\'m already logging unhandled exceptions through the Application_OnError event, but I want to perform
I agree with Collin, that you should log wherever you catch (and don't rethrow).
But if you need that every exception logged without much code modifications, then handle the AppDomain.FirstChanceException Event, and you'll get ALL the exceptions (maybe that's even too much :p, but it could help you clean the code).