Documentation ¶
Overview ¶
Package log (gitlab.com/KnownTraveler/golang-cli/log) provides a uniform Logging API that has been customized for the GOLANG CLI to print messages to the user via stdout
Index ¶
- func Debug(message string)
- func Debugf(format string, args ...interface{})
- func EnableDebug()
- func EnableTrace()
- func EnableVerbose()
- func Error(message string)
- func Errorf(format string, args ...interface{})
- func Failure(message string)
- func Failuref(format string, args ...interface{})
- func Fatal(message string)
- func Fatalf(format string, args ...interface{})
- func Panic(message string)
- func Panicf(format string, args ...interface{})
- func Print(message string)
- func Printf(format string, args ...interface{})
- func Success(message string)
- func Successf(format string, args ...interface{})
- func Trace(message string)
- func Tracef(format string, args ...interface{})
- func VPrint(message string)
- func VPrintf(format string, args ...interface{})
- func Warning(message string)
- func Warningf(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debugf ¶
func Debugf(format string, args ...interface{})
Debugf logs a formatted message at level Debug
func Failuref ¶
func Failuref(format string, args ...interface{})
Failuref logs a formatted message at level Error
func Fatalf ¶
func Fatalf(format string, args ...interface{})
Fatalf logs a formatted message at level Fatal
func Panicf ¶
func Panicf(format string, args ...interface{})
Panicf logs a formatted message at level Panic
func Printf ¶
func Printf(format string, args ...interface{})
Printf logs a formatted message at level Info
func Successf ¶
func Successf(format string, args ...interface{})
Successf logs a formatted message at level Info
func Tracef ¶
func Tracef(format string, args ...interface{})
Tracef logs a formatted message at level Trace
func VPrint ¶
func VPrint(message string)
VPrint logs a message at level Info when verboseEnabled is true
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.