Create, read, write and delete event logs in VB.NET

In .NET the EventLog class from the
System.Diagnostics namespace lets you read from existing logs, write
entries to logs, create or delete event sources, delete logs, and respond to
log entries. This can be useful when errors occur within your code. This code
shows how to use the EventLog class. To learn how to add debugging and tracing
capability to your application click here.