Documentation ¶
Index ¶
- func InitZap(opts ...OptionFunc)
- func Log(level zapcore.Level, message string, context string, scope string)
- func LogE(message string)
- func LogEf(format string, i ...interface{})
- func LogGreen(str string)
- func LogI(message string)
- func LogIf(format string, i ...interface{})
- func LogRed(str string)
- func LogWithDefer(str string) (deferFunc func())
- func LogWithField(level zapcore.Level, fields map[string]interface{})
- func LogYellow(str string)
- type Option
- type OptionFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogWithDefer ¶
func LogWithDefer(str string) (deferFunc func())
LogWithDefer return defer func for status
func LogWithField ¶ added in v1.9.3
LogWithField func
Types ¶
type OptionFunc ¶ added in v1.9.3
type OptionFunc func(*Option)
OptionFunc func
func OptionAddWriter ¶ added in v1.9.3
func OptionAddWriter(w io.Writer) OptionFunc
OptionAddWriter option func
Click to show internal directories.
Click to hide internal directories.