Documentation ¶
Index ¶
- func AddSecrets(secrets ...string)
- func Error(s string, a ...interface{}) (_ string)
- func FatalError(s string, a ...interface{}) (_ string)
- func Info(s string, a ...interface{}) (_ string)
- func IsDebugLevelMode(level int) bool
- func IsDebugMode() bool
- func IsErrorMode() bool
- func IsFatalMode() bool
- func IsInfoMode() bool
- func IsWarningMode() bool
- func SetDebug()
- func SetDebugLevel(level int)
- func SetDebugMode(debug string)
- func SetDebugPrintfHandler(formatFunc func(prefix, s string, a ...interface{}) string, ...)
- func SetError()
- func SetFatalError()
- func SetInfo()
- func SetWarning()
- func Test(s string, a ...interface{}) (_ string)
- func Trace(s string, a ...interface{}) (_ string)
- func TraceLevel(level int, s string, a ...interface{}) (_ string)
- func Warning(s string, a ...interface{}) (_ string)
- type Debug
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddSecrets ¶
func AddSecrets(secrets ...string)
func FatalError ¶
FatalError log a fatal error message
func IsDebugLevelMode ¶
IsDebugLevelMode return true if we are at debug mode level
func SetDebugLevel ¶
func SetDebugLevel(level int)
SetDebugLevel move the default debug mode to Debug at the requested level
func SetDebugMode ¶
func SetDebugMode(debug string)
SetDebugMode define the overall app debug level to print.
func SetDebugPrintfHandler ¶
func SetDebugPrintfHandler(formatFunc func(prefix, s string, a ...interface{}) string, printFunc func(a ...interface{}) (int, error))
SetDebugPrintfHandler define a different logger function to format differently
func TraceLevel ¶
TraceLevel log a debug message at given level
Types ¶
Click to show internal directories.
Click to hide internal directories.