Logging Application Events

The event log is a single entity on a single computer. It is a reasonable candidate for a Singleton object, which is guaranteed to exist only once. (For example, System.Console is a Singleton object because there is only one console—think “command prompt”—on your PC.) However, instead of making a Singleton object out of the event log, Microsoft permits you to interact with the event log with predominantly shared methods. Additionally, you can create an instance of the EventLog class as you may want to do to send log information to a remote computer or a custom event log.

The event log is a repository for information tracking on a computer. Event information is broken into four general categories: the Application log, ...

Get Visual Basic® .NET Power Coding 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.