eventlog

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventLogHook

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

EventLogHook to send logs via windows log.

func NewHook

func NewHook(logger *eventlog.Log) *EventLogHook

NewHook creates and returns a new EventLogHook wrapped around anything that implements the debug.Log interface

func (*EventLogHook) Fire

func (hook *EventLogHook) Fire(entry *logrus.Entry) error

func (*EventLogHook) Levels

func (hook *EventLogHook) Levels() []logrus.Level

Jump to

Keyboard shortcuts

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