logs

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CtxDebugf

func CtxDebugf(ctx context.Context, format string, v ...interface{})

func CtxErrorf

func CtxErrorf(ctx context.Context, format string, v ...interface{})

func CtxInfof

func CtxInfof(ctx context.Context, format string, v ...interface{})

func Debugf

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

func Errorf

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

func Fatalf

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

func GetLogId

func GetLogId(ctx context.Context) string

func Infof

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

func IsLevel

func IsLevel(level Level) bool

func SetLevel

func SetLevel(l Level)

func SetLevelString

func SetLevelString(s string)

func SetLogId

func SetLogId(ctx context.Context, id string) context.Context

func SetLogger

func SetLogger(l *log.Logger)

func Warnf

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

Types

type Level

type Level uint8
const (
	LevelFatal Level = iota + 1
	LevelError
	LevelWarning
	LevelInfo
	LevelDebug
)

func GetLevel

func GetLevel() Level

Jump to

Keyboard shortcuts

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