The
golang.org/x/sys/windows package has a
couple of functions for writing to Windows event logs, but none for reading it. I would like to add a few functions for reading event logs. The Go contribution guidelines encourage me to
discuss my design prior to undertaking this, hence this message.
My plan is to add, at least,
ReadEventLog and
EvtQuery to the
golang.org/x/sys/windows package. The former belongs to the
Event Logging API, whereas the latter belongs to the
Windows Event Log. Quoting MSDN, "The Event Logging API was designed for applications that run on the Windows Server 2003, Windows XP, or Windows 2000 operating system. In Windows Vista, the event logging infrastructure was redesigned." and "Windows Event Log is included in the operating system beginning with Windows Vista and Windows Server 2008."
Is there any reason these functions were not included in the library to begin with? Is there anything I need to know before forging ahead?
Thanks,
Adam