logger

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2024 License: Apache-2.0 Imports: 5 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Debugf

func Debugf(format string, args ...interface{})

func Errorf

func Errorf(format string, args ...interface{})

func Fatalf added in v0.1.2

func Fatalf(format string, args ...interface{})

func Infof

func Infof(format string, args ...interface{})

func SetCallerSkip added in v0.1.4

func SetCallerSkip(skip int)

func SetFullpath added in v0.1.2

func SetFullpath(fullpath bool)

func SetLevel

func SetLevel(level Level)

func SetOutput added in v0.1.2

func SetOutput(output io.Writer)

func Warnf

func Warnf(format string, args ...interface{})

Types

type Level added in v0.1.2

type Level logrus.Level
const (
	PanicLevel Level = Level(logrus.PanicLevel)
	FatalLevel Level = Level(logrus.FatalLevel)
	ErrorLevel Level = Level(logrus.ErrorLevel)
	WarnLevel  Level = Level(logrus.WarnLevel)
	InfoLevel  Level = Level(logrus.InfoLevel)
	DebugLevel Level = Level(logrus.DebugLevel)
	TraceLevel Level = Level(logrus.TraceLevel)
)

func GetLevel added in v0.1.2

func GetLevel() Level

func ParseLevel added in v0.1.5

func ParseLevel(lvl string) (Level, error)

func (Level) String added in v0.1.5

func (level Level) String() string

Jump to

Keyboard shortcuts

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