Windows Event Logs

Events logs provide a standard location where events and other messages can be recorded and later reviewed using applications such as the Event Viewer. The .NET Framework Class Library also includes several classes that can be used to create event logs, read from or write events to the logs, and delete event logs.

Three default event logs (the Application, Security, and System logs) cannot be deleted. (The security log is read-only and cannot be written to directly.) Additional resources or applications also can create their own event logs, such as the Domain Name System (DNS) and the Active Directory. It is important to be cautious ...

Get Developing and Implementing Windows®-Based Applications with Visual C#™ .NET and Visual Studio® .NET Exam Cram™ 2 (Exam 70-316) 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.