[python-win32] Puzzling Event Log entry
Jim Vickroy
Jim.Vickroy@noaa.gov
Tue, 10 Jul 2001 12:18:38 -0600
Hello all,
I'm attempting to create "services" and have them place messages in the
Event Log.
Here is the initial portion of my "run" method for a service:
def SvcDoRun (self):
"""
Perpetually:
deletes *old* files in the receiving dock
pauses a fixed interval of time
Responds to a STOP request by exiting the perpetual loop and
returning.
"""
# Put: "service started" message in Win Event Log.
import servicemanager
servicemanager.LogInfoMsg ('SXI receiving dock scrubber started.')
# Remainder of implementation here.
When the service, containing the above method, is started, the
"Properties" attribute of the event log entry contains the following
message:
------------------------------
The description for Event ID ( 255 ) in Source ( PythonService ) cannot
be found. The local computer may not have the necessary registry
information or message DLL files to display messages from a remote
computer. The following information is part of the event: SXI receiving
dock scrubber started.
------------------------------
Note, my 'SXI receiving dock scrubber started.' message is there, but
there is also some sort of problem. What have I overlooked?
My setup is:
Python 2.0
win32 extensions
Windows 2000
Thanks for your time.