log

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger = logger.NewWith(
	os.Stderr,
	logger.Config{Calldepth: 1},
	level.ALL,
	logger.Flags(0).SetTime(),
)

Logger is the global logger instance.

Functions

func Debug

func Debug(a ...interface{})

func DebugKVs

func DebugKVs(fields ...kv.Field)

func Debugf

func Debugf(s string, a ...interface{})

func Error

func Error(a ...interface{})

func ErrorKVs

func ErrorKVs(fields ...kv.Field)

func Errorf

func Errorf(s string, a ...interface{})

func Fatal

func Fatal(a ...interface{})

func FatalKVs

func FatalKVs(fields ...kv.Field)

func Fatalf

func Fatalf(s string, a ...interface{})

func Flags

func Flags() logger.Flags

func Info

func Info(a ...interface{})

func InfoKVs

func InfoKVs(fields ...kv.Field)

func Infof

func Infof(s string, a ...interface{})

func Level

func Level() level.LEVEL

func Log

func Log(calldepth int, lvl level.LEVEL, a ...interface{})

func LogKVs

func LogKVs(calldepth int, lvl level.LEVEL, fields ...kv.Field)

func Logf

func Logf(calldepth int, lvl level.LEVEL, s string, a ...interface{})

func Panic

func Panic(a ...interface{})

func PanicKVs

func PanicKVs(fields ...kv.Field)

func Panicf

func Panicf(s string, a ...interface{})

func Print

func Print(a ...interface{})

func PrintKVs

func PrintKVs(fields ...kv.Field)

func Printf

func Printf(s string, a ...interface{})

func SetFlags

func SetFlags(flags logger.Flags)

func SetFormat added in v2.2.1

func SetFormat(format entry.Formatter)

func SetLevel

func SetLevel(lvl level.LEVEL)

func SetOutput

func SetOutput(out io.Writer)

func Trace added in v2.0.6

func Trace(a ...interface{})

func TraceKVs added in v2.0.6

func TraceKVs(fields ...kv.Field)

func Tracef added in v2.0.6

func Tracef(s string, a ...interface{})

func Warn

func Warn(a ...interface{})

func WarnKVs

func WarnKVs(fields ...kv.Field)

func Warnf

func Warnf(s string, a ...interface{})

func Writer

func Writer() io.Writer

Types

This section is empty.

Jump to

Keyboard shortcuts

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