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 you are hosting multiple web applications on the same server. The structured error handling that Microsoft’s .NET Framework provides is ideal for capturing and logging application events. Global events also can be used to capture error information if errors occur in your web application.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset