Versions in this module Expand all Collapse all v1 v1.0.0 Oct 25, 2020 Changes in this version + var KV = zap.Any + var KVBool = zap.Bool + var KVFloat = zap.Float64 + var KVInt = zap.Int + var KVString = zap.String + var KVTime = zap.Time + func Close() error + func Error(format string, args ...interface{}) + func Errorv(ctx context.Context, fields ...Field) + func Errorw(args ...interface{}) + func Info(format string, args ...interface{}) + func Infov(ctx context.Context, fields ...Field) + func Infow(args ...interface{}) + func Init(conf *Config) + func SugarSync() + func Sync() + func Warn(format string, args ...interface{}) + func Warnv(ctx context.Context, fields ...Field) + func Warnw(args ...interface{}) + type Config struct + Dir string + Level zapcore.Level + LogCompress bool + MaxLogAge int + MaxLogBackups int + MaxLogFileSize int + Stdout bool + type Field = zap.Field + type Logger = *zap.Logger + type SugaredLogger = *zap.SugaredLogger