是否可以在 python 中写入 windows 日志?
最佳答案
是的,只需使用 Windows Python 扩展,如所述 here .
import win32evtlogutil
win32evtlogutil.ReportEvent(ApplicationName, EventID, EventCategory,
EventType, Inserts, Data, SID)
关于python - 用 Python 写入 Windows 日志,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/113007/