logger

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	//	Println calls Output to print to the standard logger. Arguments are handled
	//  in the manner of fmt.Println.
	Println(...interface{})
	// Printf calls Output to print to the standard logger. Arguments are handled
	// in the manner of fmt.Printf.
	Printf(string, ...interface{})
}

Logger is reco logger.

var (
	// Std is standard logger. It writes outputs to stdout.
	Std Logger = &logger{writer: os.Stdout}
	// Info is info logger. It writes output to stderr with prefix.
	Info Logger = &logger{writer: os.Stderr, prefix: prefix}
	// Error is error logger. It writes output to stderr with error prefix.
	Error Logger = &logger{writer: os.Stderr, prefix: errPrefix}
)

Jump to

Keyboard shortcuts

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