Versions in this module Expand all Collapse all v1 v1.0.1 Feb 8, 2024 v1.0.0 Feb 8, 2024 Changes in this version + func Debug(msg string, fields ...Field) + func Debugf(format string, a ...interface{}) + func Error(msg string, fields ...Field) + func Errorf(format string, a ...interface{}) + func Get() *zap.Logger + func GetWithSkip(skip int) *zap.Logger + func Info(msg string, fields ...Field) + func Infof(format string, a ...interface{}) + func Init(opts ...Option) (*zap.Logger, error) + func Panic(msg string, fields ...Field) + func ReplaceGRPCLoggerV2(l *zap.Logger) + func Sync() error + func Warn(msg string, fields ...Field) + func Warnf(format string, a ...interface{}) + func WithFields(fields ...Field) *zap.Logger + type Field = zapcore.Field + func Any(key string, val interface{}) Field + func Bool(key string, val bool) Field + func Duration(key string, val time.Duration) Field + func Err(err error) Field + func Float64(key string, val float64) Field + func Int(key string, val int) Field + func Int64(key string, val int64) Field + func String(key string, val string) Field + func Stringer(key string, val fmt.Stringer) Field + func Time(key string, val time.Time) Field + func Uint(key string, val uint) Field + func Uint64(key string, val uint64) Field + func Uintptr(key string, val uintptr) Field + type FileOption func(*fileOptions) + func WithFileIsCompression(isCompression bool) FileOption + func WithFileMaxAge(maxAge int) FileOption + func WithFileMaxBackups(maxBackups int) FileOption + func WithFileMaxSize(maxSize int) FileOption + func WithFileName(filename string) FileOption + type Option func(*options) + func WithFormat(format string) Option + func WithLevel(levelName string) Option + func WithSave(isSave bool, opts ...FileOption) Option