logger

package
v0.0.0-...-3976360 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogCloser

type LogCloser interface {
	Logger
	io.Closer
}
var Discard LogCloser = nopLogger{}

func FileLogger

func FileLogger(f file.WriteCloser) LogCloser

func NopCloser

func NopCloser(l Logger) LogCloser

func StdLogger

func StdLogger(f *os.File) LogCloser

type Logger

type Logger interface {
	Debugf(format string, args ...interface{})
	Infof(format string, args ...interface{})
	Warnf(format string, args ...interface{})
	Errorf(format string, args ...interface{})
}

Jump to

Keyboard shortcuts

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