log

package
v0.0.0-...-640762d Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Field

func Field(key string, value interface{}) field

Types

type Level

type Level int8
const (
	DebugLevel Level = iota
	InfoLevel
	WarnLevel
	ErrorLevel
	FatalLevel
	PanicLevel
)

type Logger

type Logger interface {
	Debug(string, ...field)
	Debugf(string, ...interface{})
	Info(string, ...field)
	Infof(string, ...interface{})
	Warn(string, ...field)
	Warnf(string, ...interface{})
	Error(string, ...field)
	Errorf(string, ...interface{})
	Fatal(string, ...field)
	Fatalf(string, ...interface{})
	Panic(string, ...field)
	Panicf(string, ...interface{})
}

func Must

func Must(logger Logger, err error) Logger

func New

func New(logLevel Level) (Logger, error)

Jump to

Keyboard shortcuts

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