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 SetVerbosityLevelFullContext()
- func SetVerbosityLevelPlainContext()
- func SetVerbosityLevelSilent()
- 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
func SetVerbosityLevelFullContext ¶ added in v1.8.0
func SetVerbosityLevelFullContext()
SetVerbosityLevelFullContext enable full preview of github.com/sirkon/errors.Error context grouped by a place of error processing routine. Can be useful for heavy debug.
func SetVerbosityLevelPlainContext ¶ added in v1.8.0
func SetVerbosityLevelPlainContext()
SetVerbosityLevelPlainContext enable preview of github.com/sirkon/errors.Error in a laconic way. Enabled by default.
func SetVerbosityLevelSilent ¶ added in v1.8.0
func SetVerbosityLevelSilent()
SetVerbosityLevelSilent disable preview of github.com/sirkon/errors.Error context, only show text.
Types ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.