log

package
v0.0.0-...-6102823 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogrusConfig

func LogrusConfig(logConf *conf.Server_Log) log.Logger

func NewLogrusLogger

func NewLogrusLogger(options ...Option) log.Logger

Types

type LogrusLogger

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

func (*LogrusLogger) Log

func (l *LogrusLogger) Log(level log.Level, keyvals ...interface{}) (err error)

type Option

type Option func(log *logrus.Logger)

func Formatter

func Formatter(formatter logrus.Formatter) Option

func Level

func Level(level logrus.Level) Option

func Output

func Output(w io.Writer) Option

Jump to

Keyboard shortcuts

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