eventlog

package
v0.25.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Rendered for windows/amd64

Overview

Package eventlog provides a Logger that writes to Windows Event Log.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEventLogLogger

func NewEventLogLogger(w *goeventlog.Log, newLogger func(io.Writer) log.Logger) log.Logger

NewEventLogLogger returns a new Logger which writes to Windows EventLog in event log format. The body of the log message is the formatted output from the Logger returned by newLogger.

Types

type Priority

type Priority struct {
	// contains filtered or unexported fields
}

type PrioritySelector

type PrioritySelector func(keyvals ...interface{}) Priority

PrioritySelector inspects the list of keyvals and selects an eventlog priority.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL