Python reading the Event Log
Complex native API from win32evtlog
Simpler interface from win32evtlogutil
- Define Feeder function
def DumpRecord(record): print ”Got event ID”, record.EventID
- And feed it!
win32evtlogutil.FeedEventLogRecords( \ DumpRecord)Got Event ID -2147483645Got Event ID -2147483645