Documentation ¶
Index ¶
- Constants
- 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 InitLog2(level string, outputs string, logRotationEnable int64, ...)
- func Warnf(fmt string, args ...interface{})
- func WithLogger(log Logger)
- type Logger
Constants ¶
View Source
const ( // StdErr is the default configuration for log output. StdErr = "stderr" // StdOut configuration for log output StdOut = "stdout" )
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
Types ¶
Click to show internal directories.
Click to hide internal directories.