Documentation ¶
Index ¶
- Variables
- func Any(key string, val interface{}) zapcore.Field
- func Bool(key string, val bool) zapcore.Field
- func Debug(msg string, debug ...string)
- func Err(err error) zapcore.Field
- func Error(msg string, err ...error)
- func Errorf(msg string, err error)
- func Errorm(msg string, fields ...zapcore.Field)
- func Fatal(msg string, err ...error)
- func Info(msg string, info ...string)
- func InfoW(msg, info string)
- func Infof(msg, info string)
- func Infoff(msg string, fields ...zapcore.Field)
- func Infom(msg string, fields ...zapcore.Field)
- func Init(tpath string)
- func InitDev()
- func InitErrLog()
- func InitLog()
- func Int(key string, val int) zapcore.Field
- func LogError(msg string, err error)
- func LogFatal(msg string, err error)
- func LogInfo(msg string, info ...string)
- func LogPanic(msg string, err error)
- func LogsError(msg string, err error)
- func Panic(msg string, err ...error)
- func Print(args ...interface{}) string
- func Printf(args ...interface{}) string
- func Str(key, val string) zapcore.Field
- func SugarError(msg string, err error)
- func SugarErrorm(msg string, fields ...zapcore.Field)
- func SugarFatal(msg string, err error)
- func SugarInfom(msg string, fields ...zapcore.Field)
- func SugarPanic(msg string, err error)
- func Warn(msg string, warn ...string)
- func Warnf(msg, warn string)
- type Zlog
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ZlogTime zlog time, zapcore.Field ZlogTime = zap.String("time", time.Now().Format("2006-01-02 15:04:05")) )
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.