loggerhook

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultBufferSize = 10
	DefaultLogTimeout = 1 * time.Second
)

Functions

This section is empty.

Types

type HttpHook

type HttpHook struct {
	Addr string
	// contains filtered or unexported fields
}

func NewHttpHook

func NewHttpHook(addr string) (*HttpHook, error)

func (*HttpHook) Close

func (hh *HttpHook) Close()

Close ends the logHandler goroutine

func (*HttpHook) Fire

func (hh *HttpHook) Fire(entry *logrus.Entry) error

this implements logrus Hook interface

func (*HttpHook) Levels

func (hh *HttpHook) Levels() []logrus.Level

this implements logrus Hook interface

Jump to

Keyboard shortcuts

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