logger

package
v0.0.0-...-2a1077c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Level

type Level uint8
const (
	DebugLevel Level = iota
	InfoLevel
	WarnLevel
	ErrorLevel
	FatalLevel
	PanicLevel
	NoLevel
	Disabled
	TraceLevel
)

type Logger

type Logger interface {
	SetLevel(level Level) Logger
	Debug() Registry
	Info() Registry
	Warn() Registry
	Error() Registry
	Fatal() Registry
}

func New

func New() Logger

type Registry

type Registry interface {
	Stack() Registry

	Fields(fields map[string]interface{}) Registry

	Msg(message string)
	Msgf(message string, args ...interface{})
}

Jump to

Keyboard shortcuts

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