log

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LevelCritical = Level(logrus.FatalLevel)
	LevelError    = Level(logrus.ErrorLevel)
	LevelWarn     = Level(logrus.WarnLevel)
	LevelInfo     = Level(logrus.InfoLevel)
	LevelDebug    = Level(logrus.DebugLevel)
	LevelTrace    = Level(logrus.TraceLevel)
)

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

func Error

func Error(args ...interface{})

func Info

func Info(args ...interface{})

func NewContext

func NewContext(ctx context.Context, keyValuePairs ...interface{}) context.Context

func SetDefaultLogger

func SetDefaultLogger(l *logrus.Logger)

func SetLevel

func SetLevel(l Level)

SetLevel sets the global log level used by the simple logger.

func SetLevelString added in v0.5.0

func SetLevelString(l string)

func SetLogSourceLine added in v0.5.0

func SetLogSourceLine(enabled bool)

func Trace

func Trace(args ...interface{})

func Warn

func Warn(args ...interface{})

Types

type Level

type Level uint8

func CurrentLevel

func CurrentLevel() Level

type LevelFunc

type LevelFunc = func(ctx interface{}, msg interface{}, keyValuePairs ...interface{})

Jump to

Keyboard shortcuts

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