Documentation ¶
Index ¶
- Variables
- func Debug(ctx ...interface{})
- func DebugWithTime(t time.Time, ctx ...interface{})
- func Error(err error, ctx ...interface{})
- func ErrorMsg(ctx ...interface{})
- func ErrorMsgWithTime(t time.Time, ctx ...interface{})
- func ErrorWithTime(err error, t time.Time, ctx ...interface{})
- func Fatal(err error, ctx ...interface{})
- func FatalMsg(ctx ...interface{})
- func FatalWithTime(err error, t time.Time, ctx ...interface{})
- func Info(ctx ...interface{})
- func InfoWithTime(t time.Time, ctx ...interface{})
- func Success(ctx ...interface{})
- func SuccessWithTime(t time.Time, ctx ...interface{})
- func Warning(ctx ...interface{})
- func WarningWithTime(t time.Time, ctx ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // If the output should have color ColoredOutput = true // If the output should be true color or basic colors. // Default is true if the terminal supports it TrueColor = has256ColorSupport() )
View Source
var ( // The output file for Debug, Success, Warning, and Info NormalOut = os.Stdout // The output file for Fatal and Error ErrOut = os.Stderr // If errors should automatically be checked for a non-nil value ErrNilCheck = true // Fatal exit code ExitStatus = 1 // If stack traces should be included ShowStack = true )
View Source
var Padding = true
If the log should have an extra new line at the bottom
Functions ¶
func DebugWithTime ¶
Output a debug log with a given time
func ErrorMsgWithTime ¶
Output an error log with no actual error value with a given time
func ErrorWithTime ¶
Output an error log with a given time
func FatalMsg ¶ added in v1.1.0
func FatalMsg(ctx ...interface{})
Output a fatal log with no actual error value
func FatalWithTime ¶
Output a fatal log with a given time
func InfoWithTime ¶
Output an info log with a given time
func SuccessWithTime ¶
Output a success log with a given time
func WarningWithTime ¶
Output a warning log with a given time
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.