Using Event Logging
Applications can use the Event Logging API to report and view events. For details on reporting events, see Reporting Events.
To view events that have been written to log files, see Querying for Event Source Messages and Receiving Event Notification. You can also use the Event Viewer to view events.