logger

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Instance

func Instance() *logrus.Logger

func Logger

func Logger(c context.Context) *logrus.Entry

Types

type StreamLogHook

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

func NewStreamLogHook

func NewStreamLogHook(handler func(msg string), stopFunc func()) *StreamLogHook

func (*StreamLogHook) Close

func (s *StreamLogHook) Close() error

func (*StreamLogHook) Fire

func (s *StreamLogHook) Fire(entry *logrus.Entry) error

func (*StreamLogHook) Levels

func (s *StreamLogHook) Levels() []logrus.Level

func (*StreamLogHook) Send

func (s *StreamLogHook) Send()

Jump to

Keyboard shortcuts

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