ASP.NET Exception Handling/Logging

asp.netexceptionexception handling

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 logging even when an exception is handled on a page level.

Many thanks.

Best Answer

You could use Elmah to log your exceptions. It's really easy to use and gives good information about the problem.