logging.handlers.NTEventLogHandler.getMessageID()

getMessageID(record)

Returns the message ID for the 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 format string. Then, in here, you could use a dictionary lookup to get the message ID. This version returns 1, which is the base message ID in win32service.pyd.

doc_python
2016-10-07 17:36:12
Comments
Leave a Comment

Please login to continue.