log

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// NilLogger suppresses all the log messages.
	NilLogger = log.New(ioutil.Discard, "", stdLogFlags)
)

Functions

func Debugf

func Debugf(format string, args ...interface{})

Debugf prints debug message according to a format

func ErrorWithCallDepth

func ErrorWithCallDepth(err error, callDepth int)

ErrorWithCallDepth prints err into error log using the given callDepth.

func Errorf

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

Errorf prints warning message according to a format

func Fatalf

func Fatalf(format string, args ...interface{})

Fatalf prints fatal message according to a format and exits program

func Infof

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

Infof prints info message according to a format

func SetDebug

func SetDebug(val bool)

SetDebug sets output into debug mode if true passed

func SuppressOutput

func SuppressOutput(suppress bool)

SuppressOutput suppresses all output from logs if `suppress` is true used while testing

Types

This section is empty.

Jump to

Keyboard shortcuts

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