MCPcopy Index your code
hub / github.com/python/cpython / getMessageID

Method getMessageID

Lib/logging/handlers.py:1181–1189  ·  view source on GitHub ↗

Return the message ID for the event record. If you are using your own messages, you could do this by having the msg passed to the logger being an ID rather than a formatting string. Then, in here, you could use a dictionary lookup to get the message ID. This

(self, record)

Source from the content-addressed store, hash-verified

1179 winreg.SetValueEx(key, "TypesSupported", 0, winreg.REG_DWORD, 7) # All types are supported
1180
1181 def getMessageID(self, record):
1182 """
1183 Return the message ID for the event record. If you are using your
1184 own messages, you could do this by having the msg passed to the
1185 logger being an ID rather than a formatting string. Then, in here,
1186 you could use a dictionary lookup to get the message ID. This
1187 version returns 1, which is the base message ID in win32service.pyd.
1188 """
1189 return 1
1190
1191 def getEventCategory(self, record):
1192 """

Callers 1

emitMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected