Question

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

Was it helpful?

Solution

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

import win32evtlogutil
win32evtlogutil.ReportEvent(ApplicationName, EventID, EventCategory,
                EventType, Inserts, Data, SID)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top