Using the Event Log

A subject related to services is the Event Log. Quite often, while debugging a service, you'll run into the problem of providing runtime feedback. Services should not provide direct feedback in the form of a message box or any other GUI component. Instead, they should log feedback in the Event Log. The next sections describe how to write events to the Event Log and how to read from the Event Log.

The information provided in the log is comprehensive enough that you usually get enough information to figure things out. In the log you'll get the event type, date, time, source, and category. You'll also know if the event was generated by an application, the system, or a service.

Note

There are actually at least three, if not more, ...

Get COM+ Unleashed 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.