Summary

In this chapter, you learned that Microsoft’s .NET Framework exposes an interface for managing the Windows 2000 Event Log. This interface is located in the System.Diagnostics namespace. The EventLog class in the System.Diagnostics namespace offers a rich interface for both reading and writing to the Windows 2000 Event Log. This includes setting up custom event logs and manipulating all the properties of an event.

You also learned that there are two different types of events: expected events and unexpected events. Expected events are identified using logic structures and are logged according to the rules outlining their importance. Unexpected events are trapped and handled via structured error handling. Specific exceptions can be trapped and logged, as can generic exceptions.

The chapter concluded by showing you how to build a web-based Event Log Viewer that enables you to select an event log from a DropDownList server control and click a button to display all the events in that event log. Another button clears all the log entries from the selected event log in the DropDownList server control.

In the next chapter, you move on to Part III, “Debugging the New ASP.NET Features,” and start off with a discussion on debugging ASP.NET server controls.

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

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