Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Discard provides a discard all policy logger Discard = New(false, ioutil.Discard) )
Functions ¶
func Debug ¶
func Debug(format string, args ...interface{})
Debug logs a formatted message at level Debug.
func Error ¶
func Error(format string, args ...interface{})
Error logs a formatted message at level Error.
func Fatal ¶
func Fatal(err error)
Fatal logs an error at level Fatal, and makes the program exit with an error code.
func Info ¶
func Info(format string, args ...interface{})
Info logs a formatted message at level Info.
func SetupLogging ¶
func SetupLogging(verbose bool)
SetupLogging redirects global logs to stderr and configures the log level.
Types ¶
type Logger ¶
type Logger interface { Debugf(format string, args ...interface{}) Warnf(format string, args ...interface{}) Infof(format string, args ...interface{}) Errorf(format string, args ...interface{}) }
Logger defines a facade for a simple logger
Click to show internal directories.
Click to hide internal directories.