log

package
v0.0.0-...-aca0cee Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(v ...interface{})

func Debugf

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

func Debugw

func Debugw(msg string, keysAndValues ...interface{})

func Error

func Error(v ...interface{})

func Errorf

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

func Errorw

func Errorw(msg string, keysAndValues ...interface{})

func Fatal

func Fatal(v ...interface{})

func Fatalf

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

func Fatalw

func Fatalw(msg string, keysAndValues ...interface{})

func Info

func Info(v ...interface{})

func Infof

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

func Infow

func Infow(msg string, keysAndValues ...interface{})

func NewLogger

func NewLogger() *defaultLogger

func Panic

func Panic(v ...interface{})

func Panicf

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

func Panicw

func Panicw(msg string, keysAndValues ...interface{})

func SetLogger

func SetLogger(l Logger)

func Warn

func Warn(v ...interface{})

func Warnf

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

func Warnw

func Warnw(msg string, keysAndValues ...interface{})

Types

type Logger

type Logger interface {
	Named(name string) Logger

	Debug(v ...interface{})
	Debugf(format string, v ...interface{})
	Debugw(msg string, keysAndValues ...interface{})

	Info(v ...interface{})
	Infof(format string, v ...interface{})
	Infow(msg string, keysAndValues ...interface{})

	Warn(v ...interface{})
	Warnf(format string, v ...interface{})
	Warnw(msg string, keysAndValues ...interface{})

	Error(v ...interface{})
	Errorf(format string, v ...interface{})
	Errorw(msg string, keysAndValues ...interface{})

	Fatal(v ...interface{})
	Fatalf(format string, v ...interface{})
	Fatalw(msg string, keysAndValues ...interface{})

	Panic(v ...interface{})
	Panicf(format string, v ...interface{})
	Panicw(msg string, keysAndValues ...interface{})
}

func Named

func Named(name string) Logger

type Lvl

type Lvl uint
const (
	DEBUG Lvl = iota
	INFO
	WARN
	ERROR
	OFF
)

func (Lvl) ColorString

func (lvl Lvl) ColorString() string

func (Lvl) String

func (lvl Lvl) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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