hook

package
v1.6.15 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultContextHook = &ContextHook{"src", 5, []logrus.Level{}}
)

Functions

This section is empty.

Types

type ContextHook

type ContextHook struct {
	Field string
	Skip  int
	// contains filtered or unexported fields
}

ContextHook ...

func (*ContextHook) Fire

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

Fire ...

func (*ContextHook) Levels

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

Levels ...

Jump to

Keyboard shortcuts

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