Documentation ¶
Index ¶
- Constants
- func AddVerboseFlag(cmd ...*cobra.Command)
- func Debug(args ...interface{})
- func DebugWithFields(msg string, kv map[string]interface{})
- func Debugf(format string, v ...interface{})
- func Debugln(args ...interface{})
- func Error(args ...interface{})
- func ErrorE(err error)
- func ErrorWithFields(msg string, kv map[string]interface{})
- func Errorf(format string, v ...interface{})
- func Errorln(args ...interface{})
- func Errors(err error)
- func Fatal(args ...interface{})
- func FatalWithFields(msg string, kv map[string]interface{})
- func Fatalf(format string, v ...interface{})
- func Fatalln(args ...interface{})
- func Info(args ...interface{})
- func InfoWithFields(msg string, kv map[string]interface{})
- func Infof(format string, v ...interface{})
- func Infoln(args ...interface{})
- func Print(v ...interface{})
- func PrintLogs()
- func Printf(format string, v ...interface{})
- func Println(v ...interface{})
- func Warn(args ...interface{})
- func WarnWithFields(msg string, kv map[string]interface{})
- func Warnf(format string, v ...interface{})
- func Warnln(args ...interface{})
Constants ¶
View Source
const ( DefaultTimeFormat = "15:04:05.000" DefaultCallerSkipFrameCount = 3 // set to 3 because logger wrapped in logger.go NoColor = true UseCaller = false // for developer, if you want to expose line of code of caller )
Variables ¶
This section is empty.
Functions ¶
func AddVerboseFlag ¶ added in v1.3.0
AddVerboseFlag set flag --log-debug
func DebugWithFields ¶
DebugWithFields function
func ErrorWithFields ¶
ErrorWithFields function
func FatalWithFields ¶
FatalWithFields function
func InfoWithFields ¶
InfoWithFields function
func Printf ¶
func Printf(format string, v ...interface{})
Printf standard printf with debug mode validation
func WarnWithFields ¶
WarnWithFields function
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.