Versions in this module Expand all Collapse all v1 v1.1.0 May 7, 2022 Changes in this version + const ConsoleEncoder + const JSONEncoder + var Any = zap.Any + var Bool = zap.Bool + var Float32 = zap.Float32 + var Float64 = zap.Float64 + var Int = zap.Int + var Int16 = zap.Int16 + var Int32 = zap.Int32 + var Int64 = zap.Int64 + var Int8 = zap.Int8 + var Namespace = zap.Namespace + var String = zap.String + var Uint = zap.Uint + var Uint16 = zap.Uint16 + var Uint32 = zap.Uint32 + var Uint64 = zap.Uint64 + var Uint8 = zap.Uint8 + func Debug(args ...interface{}) + func Debugf(template string, args ...interface{}) + func Error(args ...interface{}) + func Errorf(template string, args ...interface{}) + func Fatal(args ...interface{}) + func Fatalf(template string, args ...interface{}) + func Info(args ...interface{}) + func Infof(template string, args ...interface{}) + func SetOptions(options ...Option) + func Sync() error + func Warn(args ...interface{}) + func Warnf(template string, args ...interface{}) + type Field = zap.Field + type FileOption func(*FileOptions) + func WithCompress(compress bool) FileOption + func WithFilename(filename string) FileOption + func WithMaxAge(maxAge int) FileOption + func WithMaxBackups(maxBackups int) FileOption + func WithMaxSize(maxSize int) FileOption + type FileOptions struct + type Level = zapcore.Level + const DebugLevel + const ErrorLevel + const FatalLevel + const InfoLevel + const WarnLevel + type Log struct + func (l *Log) Debug(msg string, fields ...Field) + func (l *Log) Error(msg string, fields ...Field) + func (l *Log) Fatal(msg string, fields ...Field) + func (l *Log) Info(msg string, fields ...Field) + func (l *Log) Sugar() *SugaredLogger + func (l *Log) Sync() error + func (l *Log) Warn(msg string, fields ...Field) + type Logger = zap.Logger + type Option func(*Options) + func WithEncoding(encoding string) Option + func WithFileWriter(options ...FileOption) Option + func WithLevel(level Level) Option + func WithLevelString(levelString string) Option + func WithWriter(writer io.Writer) Option + type Options struct + func New(options ...Option) *Options + func (o *Options) Build() *Log + type SugaredLogger = zap.SugaredLogger v1.0.0 Apr 29, 2022