MCPcopy Index your code
hub / github.com/RustPython/RustPython / getMessageID

Method getMessageID

Lib/logging/handlers.py:1166–1174  ·  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

1164 self._welu = None
1165
1166 def getMessageID(self, record):
1167 """
1168 Return the message ID for the event record. If you are using your
1169 own messages, you could do this by having the msg passed to the
1170 logger being an ID rather than a formatting string. Then, in here,
1171 you could use a dictionary lookup to get the message ID. This
1172 version returns 1, which is the base message ID in win32service.pyd.
1173 """
1174 return 1
1175
1176 def getEventCategory(self, record):
1177 """

Callers 1

emitMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected