log

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const Noop = noop(0)

Noop 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{})
	WithValues(values map[string]interface{}) Logger
}

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

func NewLogrus

func NewLogrus(l *logrus.Entry) Logger

NewLogrus returns a new log.Logger for a logrus implementation.

Jump to

Keyboard shortcuts

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