log

package
v0.0.0-...-466853b Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(debug bool) func(*Logger)

func Output

func Output(out io.Writer) func(*Logger)

func Prefix

func Prefix(prefix string) func(*Logger)

func StdLogger

func StdLogger(lg *log.Logger) func(*Logger)

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func New

func New(opts ...func(*Logger)) *Logger

func (*Logger) Debug

func (l *Logger) Debug(v ...interface{})

func (*Logger) Debugf

func (l *Logger) Debugf(format string, v ...interface{})

func (*Logger) Printf

func (l *Logger) Printf(format string, v ...interface{})

func (*Logger) Println

func (l *Logger) Println(v ...interface{})

Jump to

Keyboard shortcuts

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