Documentation ¶
Overview ¶
Package log implements leveled logging.
Index ¶
- Constants
- func Colored(color string, text string) string
- func Debug(a ...interface{}) error
- func Debugf(format string, a ...interface{}) error
- func Disable()
- func Enable()
- func Error(a ...interface{}) error
- func Errorf(format string, a ...interface{}) error
- func Fatal(a ...interface{})
- func Fatalf(format string, a ...interface{})
- func Info(a ...interface{}) error
- func Infof(format string, a ...interface{}) error
- func SetColored(b bool)
- func SetLevel(l int)
- func SetWriter(writer io.Writer)
- func Warn(a ...interface{}) error
- func Warnf(format string, a ...interface{}) error
Constants ¶
View Source
const ( DEBUG int = iota INFO WARN ERROR )
Level
Variables ¶
This section is empty.
Functions ¶
func Fatalf ¶ added in v0.1.9
func Fatalf(format string, a ...interface{})
Fatalf formats and logs message with level FATAL.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.