Documentation
¶
Index ¶
- func Debugf(fmt string, args ...interface{})
- func Errorf(fmt string, args ...interface{})
- func FatalIfError(err error)
- func FatalfIf(cond bool, fmt string, args ...interface{})
- func Infof(fmt string, args ...interface{})
- func InitLog(level string)
- func Warnf(fmt string, args ...interface{})
- func WithLogger(log Logger)
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FatalIfError ¶
func FatalIfError(err error)
FatalIfError if err is not nil, then log to level fatal and call os.Exit
func InitLog ¶
func InitLog(level string)
InitLog is an initialization for a logger level can be: debug info warn error
func WithLogger ¶ added in v1.9.0
func WithLogger(log Logger)
Types ¶
Click to show internal directories.
Click to hide internal directories.