.NET Framework: Using the Event Log
The purpose of this
demonstration is to show you how to interact with the Event Log.
Featured Highlights
The EventLog can be used by a variety of different applications to either store
application errors, warnings, and general information. Using the EventLog class
found in the System.Diagnostics namespace you can easily write to and read from
the eventlog on the local and/or remote machines.
In this example you see how to read, write to existing logs as well as how to
create and delete logs.
Requirements
Requires the release version
of Visual Studio .NET Professional (or greater).
Requires NT4, Windows 2000 Professional, Server, or Advanced Server, or Windows
XP
as the Operating System.
Requires that you have Administrative rights to the local machine with your
currently logged on account.
Running the Sample
Simply Press F5.
See Also
EventLog Class
Working with the EventLog