log

package
v0.0.0-...-2d67580 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2018 License: MIT Imports: 6 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(v ...interface{})

func Debugd

func Debugd(calldepth int, v ...interface{})

calldepth == 0 == current

func Debugf

func Debugf(f string, v ...interface{})

func Error

func Error(v ...interface{})

func Errord

func Errord(calldepth int, v ...interface{})

func Errorf

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

func Fatal

func Fatal(v ...interface{})

func Fatald

func Fatald(calldepth int, v ...interface{})

func Fatalf

func Fatalf(f string, v ...interface{})

func IfDebug

func IfDebug(f func()) bool

func IfEligible

func IfEligible(level LogLevel, f func()) bool

func Info

func Info(v ...interface{})

func Infod

func Infod(calldepth int, v ...interface{})

func Infof

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

func Output

func Output(level LogLevel, msg string, calldepth int)

func Quiet

func Quiet()

func SetLevel

func SetLevel(level LogLevel)

func SetLogger

func SetLogger(out io.Writer, flag int)

func Verbose

func Verbose()

func Warn

func Warn(v ...interface{})

func Warnd

func Warnd(calldepth int, v ...interface{})

func Warnf

func Warnf(f string, v ...interface{})

Types

type LogLevel

type LogLevel int
const (
	DEBUG LogLevel = iota
	INFO
	WARN
	ERROR
	FATAL
	DISABLED
)

func (LogLevel) String

func (l LogLevel) String() (s string)

Jump to

Keyboard shortcuts

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