Web Applications Can Use the Event Log

Web applications can also leverage the application event log. Previous versions of ASP did not offer an easy way to write information to the application event log—you had to build a Visual Basic component that would enable this functionality. This, coupled with the fact that there was no structured error handling in traditional ASP applications, meant that you had to either use the On Error Resume Next statement or direct all of your page errors to a centralized error page for processing—not very elegant at all.

ASP.NET offers full support for manipulating the Windows 2000 Event Log. This includes creating custom application logs that are specific to your web application. This helps you stay organized if ...

Get Debugging ASP.NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.