Documentation ¶
Overview ¶
Package log provides logging functions wraps fmt.Println with options and colors
Index ¶
- Variables
- func Debug(verbose bool, args ...interface{})
- func Debugf(verbose bool, format string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Info(args ...interface{})
- func InfoLight(args ...interface{})
- func InfoLightf(format string, args ...interface{})
- func Infof(format string, args ...interface{})
- func Success(args ...interface{})
- func Warning(args ...interface{})
Constants ¶
This section is empty.
Variables ¶
var ( // DiagnosticWriter controls logs output DiagnosticWriter = color.Error )
Functions ¶
func Debug ¶
func Debug(verbose bool, args ...interface{})
Debug writes the message to standard error in grey and with a new line.
func Debugf ¶
Debugf formats according to the specifier, colors the message in grey, and writes to standard error.
func Error ¶
func Error(args ...interface{})
Error writes the message to standard error with the default color.
func Errorf ¶ added in v0.1.11
func Errorf(format string, args ...interface{})
Errorf writes the message to standard error with the default color.
func Info ¶
func Info(args ...interface{})
Info writes the message to standard error with the default color.
func InfoLight ¶ added in v0.1.11
func InfoLight(args ...interface{})
InfoLight writes the message to standard error in grey and with a new line.
func InfoLightf ¶ added in v0.1.11
func InfoLightf(format string, args ...interface{})
InfoLightf formats according to the specifier, colors the message in grey, and writes to standard error.
func Infof ¶
func Infof(format string, args ...interface{})
Infof formats according to the specifier, and writes to standard error with the default color.
Types ¶
This section is empty.