log

package
v0.0.0-...-93b0e25 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Debug     = logger.Debug
	Debugf    = logger.Debugf
	Info      = logger.Info
	Infof     = logger.Infof
	Warn      = logger.Warn
	Warnf     = logger.Warnf
	Error     = logger.Error
	Errorf    = logger.Errorf
	WithField = logger.WithField
)

Functions

func Init

func Init(cfg *Config)

func RemoveReqID

func RemoveReqID()

func SetLevel

func SetLevel(level string)

func SetReqID

func SetReqID(reqID string)

Types

type Config

type Config struct {
	Independent bool
	Path        string
	Level       string
	KeepDays    int
}

type MyFormatter

type MyFormatter struct{}

func (*MyFormatter) Format

func (mf *MyFormatter) Format(entry *logrus.Entry) ([]byte, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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