logger

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultLogger is used when a Logger is not provided
	DefaultLogger = &internalLogger{log: log.New(os.Stderr, "", log.LstdFlags)}
	// DiscardingLogger can be used to disable logging output
	DiscardingLogger = &internalLogger{log: log.New(ioutil.Discard, "", 0)}
)

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Infof(format string, args ...interface{})
	Warningf(format string, args ...interface{})
	Errorf(format string, args ...interface{})
	Info(args ...interface{})
	Warning(args ...interface{})
	Error(args ...interface{})
}

The Logger interface generalizes the Entry and Logger types

Jump to

Keyboard shortcuts

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