Documentation
¶
Index ¶
- Variables
- func CleanExit(format string, v ...interface{})
- func Debug(format 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 New() *log.Logger
- func Warn(format string, v ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorState = false
ErrorState denotes if application is in an error state.
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 Stdin io.Reader = os.Stdin
Stdin is the input alternative for logging.
Applications that take console-like input should use this.
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(format 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.