The HttpApplication.LogRequest event is raised even if an error occurs. You can provide an event handler for the HttpApplication.LogRequest event to provide custom logging for the request.
For more information about how to handle events, see Consuming Events.
HttpApplication.LogRequest is introduced in the .NET Framework version 3.5. For more information, see The .NET Framework 3.5 Architecture.