Almost all services use the Windows NT Event Log. It’s quite common for services to load startup and shutdown events, and error conditions should always go to the Event Log.
We look first at the facilities provided by the
servicemanager
module for working with the Event Log.
Then we will have another look at a couple of modules described
previously in this chapter, win32evtlog
and
win32evtlogutil
. We discussed how to use these modules
to read the Event Log, so now let’s look at how they can write
to the Log.
No credit card required