Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrKeyExists = fmt.Errorf("%s\\%s already exists", addKeyName, source)
ErrKeyExists signals that the registry key already exists
var ErrUnknownEventID = errors.New("unknown event id found")
ErrUnknownEventID represents the error for signaling unknown event identifiers. This error is raised when we can't get a valid mapping for the existing kernel event type.
Functions ¶
func Install ¶
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.
Types ¶
type Config ¶
type Config struct { // Enabled determines whether the eventlog output is enabled. Enabled bool `mapstructure:"enabled"` // Level specifies the eventlog log level. Level string `mapstructure:"level"` // RemoteHost is the address of the remote eventlog intake. RemoteHost string `mapstructure:"remote-host"` // Template specifies the Go template for rendering the eventlog message. Template string `mapstructure:"template"` }
Config contains configuration properties for fine-tuning the eventlog output.
type Eventlog ¶
Eventlog provides access to the system log.
func OpenRemote ¶
OpenRemote does the same as Open, but on different computer host.