hooks

package
v0.0.0-...-dbebb78 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hook

type Hook struct {
	Field string
	Skip  int

	Formatter func(file, function string, line int) string
	// contains filtered or unexported fields
}

Hook log hook..

func NewHook

func NewHook(levels ...logrus.Level) *Hook

NewHook ....

func (*Hook) Fire

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

Fire triggers formatter

func (*Hook) Levels

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

Levels set logrus log level

Jump to

Keyboard shortcuts

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