Windows Event Log, error output
Adding more Event Log support, and modifying the loggers so they return errors in their operational functions.
This commit is contained in:
12
logging/errs_windows.go
Normal file
12
logging/errs_windows.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package logging
|
||||
|
||||
import (
|
||||
`errors`
|
||||
`fmt`
|
||||
)
|
||||
|
||||
var (
|
||||
ErrBadBinPath error = errors.New("evaluated binary path does not actually exist")
|
||||
ErrBadPerms error = errors.New("access denied when attempting to register Event Log source")
|
||||
ErrBadEid error = errors.New(fmt.Sprintf("event IDs must be between %v and %v inclusive", EIDMin, EIDMax))
|
||||
)
|
||||
Reference in New Issue
Block a user