import "golang.org/x/sys/windows/svc/eventlog"
Package eventlog implements access to Windows event log.
const ( // Log levels. Info = windows.EVENTLOG_INFORMATION_TYPE Warning = windows.EVENTLOG_WARNING_TYPE Error = windows.EVENTLOG_ERROR_TYPE )
Install modifies PC registry to allow logging with an event source src. It adds all required keys and values to the event log registry key. Install uses msgFile as the event message file. If useExpandKey is true, the event message file is installed as REG_EXPAND_SZ value, otherwise as REG_SZ. Use bitwise of log.Error, log.Warning and log.Info to specify events supported by the new event source.
InstallAsEventCreate is the same as Install, but uses %SystemRoot%\System32\EventCreate.exe as the event message file.
Remove deletes all registry elements installed by the correspondent Install.
Log provides access to the system log.
Open retrieves a handle to the specified event log.
OpenRemote does the same as Open, but on different computer host.
Close closes event log l.
Error writes an error event msg with event id eid to the end of event log l. When EventCreate.exe is used, eid must be between 1 and 1000.
Info writes an information event msg with event id eid to the end of event log l. When EventCreate.exe is used, eid must be between 1 and 1000.
Warning writes an warning event msg with event id eid to the end of event log l. When EventCreate.exe is used, eid must be between 1 and 1000.
Package eventlog imports 4 packages (graph) and is imported by 3 packages. Updated 5 days ago with GOOS=windows. Refresh now. Tools for package owners.