hook

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 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 DefaultFieldHook

type DefaultFieldHook struct {
}

func (*DefaultFieldHook) Fire

func (h *DefaultFieldHook) Fire(entry *logrus.Entry) error

func (*DefaultFieldHook) Levels

func (h *DefaultFieldHook) Levels() []logrus.Level

type LineHook

type LineHook struct {
	// skip为遍历调用栈开始的索引位置
	Skip int
	// contains filtered or unexported fields
}

line number hook for log the call context,

func (*LineHook) Fire

func (h *LineHook) Fire(entry *logrus.Entry) error

Fire implement fire

func (*LineHook) Levels

func (h *LineHook) Levels() []logrus.Level

Levels implement levels

Jump to

Keyboard shortcuts

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