func NewEventlogBackend()

in galog_eventlog_windows.go [27:39]


func NewEventlogBackend(eventID uint32, ident string) (*EventlogBackend, error) {
	res := &EventlogBackend{
		backendID: eventlogBackendID,
		eventID:   eventID,
		ident:     ident,
		config:    newBackendConfig(defaultEventlogQueueSize),
	}

	res.config.SetFormat(ErrorLevel, "{{if .Prefix}}{{.Prefix}}: {{end}}{{.Message}}")
	res.config.SetFormat(DebugLevel, "{{if .Prefix}}{{.Prefix}}: {{end}}({{.File}}:{{.Line}}) {{.Message}}")

	return res, nil
}