Documentation
¶
Overview ¶
Package log is a convenience wrapper for logging messages of various levels (associated colors to come) to the terminal. Much of this code has been shamelessly stolen from https://github.com/helm/helm/blob/master/log/log.go
Index ¶
- Variables
- func CleanExit(format string, v ...interface{})
- func Debug(msg string, v ...interface{})
- func Die(format string, v ...interface{})
- func Err(format string, v ...interface{})
- func Info(format string, v ...interface{})
- func Msg(format string, v ...interface{})
- func Warn(format string, v ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var IsDebugging = false
IsDebugging toggles whether or not to enable debug output and behavior.
View Source
var Stderr io.Writer = os.Stderr
Stderr is the logging destination for error messages.
View Source
var Stdout io.Writer = os.Stdout
Stdout is the logging destination for normal messages.
Functions ¶
func CleanExit ¶
func CleanExit(format string, v ...interface{})
CleanExit prints a message and then exits with 0.
func Debug ¶
func Debug(msg string, v ...interface{})
Debug prints a cyan-tinted message if IsDebugging is true.
func Err ¶
func Err(format string, v ...interface{})
Err prints an error message. It does not cause an exit.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.