Example #1
0
func init() {
	// Register eventlogging API if it is available.
	available, _ := sys.IsAvailable()
	if available {
		Register(winEventLogAPIName, 0, newWinEventLog, sys.Channels)
	}
}
Example #2
0
func init() {
	// Register wineventlog API if it is available.
	available, _ := win.IsAvailable()
	if available {
		Register(winEventLogAPIName, 0, newWinEventLog, win.Channels)
	}
}
Example #3
0
// IsAvailable returns true if the Windows Event Log API is available on this
// system.
func IsAvailable() (bool, error) {
	avail, err := sys.IsAvailable()
	return avail, err
}