Documentation ¶
Index ¶
- Variables
- func Debugf(format string, args ...interface{})
- func ErrorWithCallDepth(err error, callDepth int)
- func Errorf(format string, args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Infof(format string, args ...interface{})
- func SetDebug(val bool)
- func SuppressOutput(suppress bool)
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 ¶
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 SuppressOutput ¶
func SuppressOutput(suppress bool)
SuppressOutput suppresses all output from logs if `suppress` is true used while testing
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.