logger

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VerboseF = 1 << iota
	ExtraVerboseF
)

Variables

This section is empty.

Functions

func Error

func Error(v ...interface{})

func Errorf

func Errorf(format string, v ...interface{})

func ExtraVerbose

func ExtraVerbose(v ...interface{})

func ExtraVerbosef

func ExtraVerbosef(format string, v ...interface{})

func Info

func Info(v ...interface{})

func Infof

func Infof(format string, v ...interface{})

func Verbose

func Verbose(v ...interface{})

func Verbosef

func Verbosef(format string, v ...interface{})

func Warning

func Warning(v ...interface{})

func Warningf

func Warningf(format string, v ...interface{})

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}
var DefaultLogger *Logger = &Logger{out: log.New(os.Stderr, "", 0)}
var DiscardLogger *Logger = &Logger{out: log.New(ioutil.Discard, "", 0)}

func New

func New(prefix string, flag int) *Logger

func (*Logger) Error

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

func (*Logger) Errorf

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

func (*Logger) ExtraVerbose

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

func (*Logger) ExtraVerbosef

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

func (*Logger) Info

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

func (*Logger) Infof

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

func (*Logger) SetVerbose

func (l *Logger) SetVerbose(level int)

func (*Logger) Verbose

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

func (*Logger) Verbosef

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

func (*Logger) Warning

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

func (*Logger) Warningf

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

Jump to

Keyboard shortcuts

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