Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Writing to the windows logs in Python

Is it possible to write to the windows logs in python?

like image 448
UnkwnTech Avatar asked Sep 22 '08 03:09

UnkwnTech


1 Answers

Yes, just use Windows Python Extension, as stated here.

import win32evtlogutil
win32evtlogutil.ReportEvent(ApplicationName, EventID, EventCategory,
                EventType, Inserts, Data, SID)
like image 188
nosklo Avatar answered Oct 08 '22 19:10

nosklo