hook

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallerHook

type CallerHook struct {
	Prefix string
}

func (CallerHook) Fire

func (hook CallerHook) Fire(entry *log.Entry) error

func (CallerHook) Levels

func (hook CallerHook) Levels() []log.Level

type CtxHook

type CtxHook struct {
	Prefix string
	Fields []string
}

func (*CtxHook) AddField

func (hook *CtxHook) AddField(field string)

func (*CtxHook) AddFields

func (hook *CtxHook) AddFields(fields []string)

func (CtxHook) Fire

func (hook CtxHook) Fire(entry *log.Entry) error

func (CtxHook) Levels

func (hook CtxHook) Levels() []log.Level

Jump to

Keyboard shortcuts

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