Documentation ¶
Index ¶
- Variables
- func CheckError(err error)
- func DPanic(msg string, fields ...zap.Field)
- func Debug(msg string, fields ...zap.Field)
- func Error(msg string, fields ...zap.Field)
- func Fatal(msg string, fields ...zap.Field)
- func Info(msg string, fields ...zap.Field)
- func NewLoggerByWrapZap(level zapcore.LevelEnabler, version string, writes ...zapcore.WriteSyncer) *zap.Logger
- func Panic(msg string, fields ...zap.Field)
- func Print(objs ...interface{})
- func Printf(format string, objs ...interface{})
- func Sync()
- func Warn(msg string, fields ...zap.Field)
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultLogger *zap.Logger
View Source
var Version string
git commit hash
Functions ¶
func CheckError ¶
func CheckError(err error)
func NewLoggerByWrapZap ¶
func NewLoggerByWrapZap(level zapcore.LevelEnabler, version string, writes ...zapcore.WriteSyncer) *zap.Logger
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.