hook

package
v0.0.0-...-c4dba0f Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StackHook

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

func NewStackHook

func NewStackHook(stackLevel log.Level, callerSkip int) *StackHook

func (*StackHook) Fire

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

func (*StackHook) Levels

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

type WriterHook

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

func NewWriterHook

func NewWriterHook(output interface{}) *WriterHook

func (*WriterHook) Fire

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

func (*WriterHook) Levels

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

type WriterMap

type WriterMap map[logrus.Level]io.Writer

Jump to

Keyboard shortcuts

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