在Python中写入Windows日志
答
是的,只需使用Windows Python Extension,如here所述。
import win32evtlogutil
win32evtlogutil.ReportEvent(ApplicationName, EventID, EventCategory,
EventType, Inserts, Data, SID)