log

package
v2.19.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const Dummy = dummy(0)

Dummy logger doesn't log anything.

Variables

This section is empty.

Functions

This section is empty.

Types

type KV

type KV map[string]interface{}

KV is a helper type for structured logging fields usage.

type Logger

type Logger interface {
	Infof(format string, args ...interface{})
	Warningf(format string, args ...interface{})
	Errorf(format string, args ...interface{})
	Debugf(format string, args ...interface{})
	WithKV(KV) Logger
}

Logger is the interface that the loggers used by the library will use.

func NewStd

func NewStd(debug bool) Logger

NewStd returns a Logger implementation with the standard logger.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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