MCPcopy Create free account
hub / github.com/ActiveState/code / log

Method log

recipes/Python/551780_Win_Services_helper/recipe-551780.py:18–20  ·  view source on GitHub ↗
(self, msg)

Source from the content-addressed store, hash-verified

16 self.log('init')
17 self.stop_event = win32event.CreateEvent(None, 0, 0, None)
18 def log(self, msg):
19 import servicemanager
20 servicemanager.LogInfoMsg(str(msg))
21 def sleep(self, sec):
22 win32api.Sleep(sec*1000, True)
23 def SvcDoRun(self):

Callers 7

__init__Method · 0.95
SvcDoRunMethod · 0.95
SvcStopMethod · 0.95
__pow__Method · 0.45
recipe-580610.pyFile · 0.45
startMethod · 0.45
stopMethod · 0.45

Calls 1

strFunction · 0.85

Tested by

no test coverage detected