log

package
v0.0.0-...-0de2bea Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2019 License: Apache-2.0 Imports: 4 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrLogger = &logrus.Logger{
	Out:       os.Stderr,
	Formatter: new(logrus.JSONFormatter),
	Level:     logrus.ErrorLevel,
}
View Source
var Logger *logrus.Logger

Functions

func SetupLogger

func SetupLogger(config *config.LogConfig)

Types

type MultiLogHook

type MultiLogHook struct {
	ValidLevels []logrus.Level
	Logger      *logrus.Logger
}

func NewMultiLogHook

func NewMultiLogHook(levels []logrus.Level, logger *logrus.Logger) *MultiLogHook

func (*MultiLogHook) Fire

func (hook *MultiLogHook) Fire(entry *logrus.Entry) error

func (*MultiLogHook) Levels

func (hook *MultiLogHook) Levels() []logrus.Level

Jump to

Keyboard shortcuts

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