Documentation
¶
Index ¶
- Constants
- Variables
- func Colorize(text string, level Level) string
- func Debugf(format string, args ...interface{})
- func Errorf(format string, args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Infof(format string, args ...interface{})
- func Silentf(format string, args ...interface{})
- func Verbosef(format string, label string, args ...interface{})
- func Warningf(format string, args ...interface{})
- type Level
Constants ¶
View Source
const ( Red = "\033[31m" Yellow = "\033[33m" Blue = "\033[34m" Magenta = "\033[35m" Reset = "\033[0m" Bold = "\033[1m" )
Variables ¶
View Source
var ( UseColors = true MaxLevel = Info )
Functions ¶
func Debugf ¶ added in v1.0.3
func Debugf(format string, args ...interface{})
Debugf writes a debug message
func Errorf ¶ added in v1.0.3
func Errorf(format string, args ...interface{})
Errorf writes an error message
func Fatalf ¶ added in v1.0.3
func Fatalf(format string, args ...interface{})
Fatalf exits the program after logging a fatal message
func Infof ¶ added in v1.0.3
func Infof(format string, args ...interface{})
Infof writes an info message
func Silentf ¶ added in v1.0.3
func Silentf(format string, args ...interface{})
Silentf writes a message with no label
Types ¶
Click to show internal directories.
Click to hide internal directories.