Documentation ¶
Index ¶
- func AddFatalHook(f func())
- func Critical(data ...interface{})
- func Criticalf(format string, data ...interface{})
- func Debug(data ...interface{})
- func Debugf(format string, data ...interface{})
- func Error(data ...interface{})
- func Errorf(format string, data ...interface{})
- func Fatal(data ...interface{})
- func Fatalf(format string, data ...interface{})
- func Info(data ...interface{})
- func Infof(format string, data ...interface{})
- func Notice(data ...interface{})
- func Noticef(format string, data ...interface{})
- func RemoveFatalHooks()
- func SetDebug(status bool)
- func SetDest(d io.Writer)
- func UseColor(decision bool)
- func Warning(data ...interface{})
- func Warningf(format string, data ...interface{})
- type Color
- type ColorInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFatalHook ¶ added in v1.6.0
func AddFatalHook(f func())
AddFatalHook adds a function to execute before the os.Exit(1) in Fatal family of functions.
func Criticalf ¶
func Criticalf(format string, data ...interface{})
Criticalf print yellow formatted message
func Noticef ¶
func Noticef(format string, data ...interface{})
Noticef print yellow formatted message
func RemoveFatalHooks ¶ added in v1.6.0
func RemoveFatalHooks()
RemoveFatalHooks clears all fatal hooks
Types ¶
Click to show internal directories.
Click to hide internal directories.