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, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access