Versions in this module Expand all Collapse all v1 v1.5.0 Nov 30, 2021 v1.4.6 Oct 28, 2021 Changes in this version + var Any = zap.Any + var Array = zap.Array + var Binary = zap.Binary + var Bool = zap.Bool + var Bools = zap.Bools + var ByteString = zap.ByteString + var ByteStrings = zap.ByteStrings + var Complex128 = zap.Complex128 + var Complex128s = zap.Complex128s + var Complex64 = zap.Complex64 + var Complex64s = zap.Complex64s + var Duration = zap.Duration + var Durations = zap.Durations + var Error = zap.Error + var Errors = zap.Errors + var Float32 = zap.Float32 + var Float32s = zap.Float32s + var Float64 = zap.Float64 + var Float64s = zap.Float64s + var Int = zap.Int + var Int16 = zap.Int16 + var Int16s = zap.Int16s + var Int32 = zap.Int32 + var Int32s = zap.Int32s + var Int64 = zap.Int64 + var Int64s = zap.Int64s + var Int8 = zap.Int8 + var Int8s = zap.Int8s + var Ints = zap.Ints + var Namespace = zap.Namespace + var Reflect = zap.Reflect + var Stack = zap.Stack + var String = zap.String + var Stringer = zap.Stringer + var Strings = zap.Strings + var Time = zap.Time + var Times = zap.Times + var Uint = zap.Uint + var Uint16 = zap.Uint16 + var Uint16s = zap.Uint16s + var Uint32 = zap.Uint32 + var Uint32s = zap.Uint32s + var Uint64 = zap.Uint64 + var Uint64s = zap.Uint64s + var Uint8 = zap.Uint8 + var Uint8s = zap.Uint8s + var Uintptr = zap.Uintptr + var Uintptrs = zap.Uintptrs + var Uints = zap.Uints + func Configure(cfg Config) error + func DevelopmentSetup(options ...Option) error + func HasSelector(selector string) bool + func IsDebug(selector string) bool + func ObserverLogs() *observer.ObservedLogs + func SetLevel(lv Level) + func Sync() error + func TestingSetup(options ...Option) error + type Config struct + Files FileConfig + JSON bool + Level Level + Metas []zap.Field + Name string + Selectors []string + ToEventLog bool + ToFiles bool + ToStderr bool + ToSyslog bool + func DefaultConfig() Config + type FileConfig struct + Interval time.Duration + MaxBackups uint + MaxSize uint + Name string + Path string + Permissions uint32 + RedirectStderr bool + RotateOnStartup bool + type Level int8 + const DebugLevel + const ErrorLevel + const FatalLevel + const InfoLevel + const PanicLevel + const WarnLevel + func NewLevel(str string) (Level, error) + func (l *Level) Unpack(str string) error + func (l Level) Enabled(level Level) bool + func (l Level) String() string + type LogOption = zap.Option + type Logger struct + func L() *Logger + func NewLogger(selector string, options ...LogOption) *Logger + func (l *Logger) DPanic(args ...interface{}) + func (l *Logger) DPanicf(format string, args ...interface{}) + func (l *Logger) DPanicw(msg string, fields ...logger.Field) + func (l *Logger) Debug(args ...interface{}) + func (l *Logger) Debugf(format string, args ...interface{}) + func (l *Logger) Debugw(msg string, fields ...logger.Field) + func (l *Logger) Error(args ...interface{}) + func (l *Logger) Errorf(format string, args ...interface{}) + func (l *Logger) Errorw(msg string, fields ...logger.Field) + func (l *Logger) Fatal(args ...interface{}) + func (l *Logger) Fatalf(format string, args ...interface{}) + func (l *Logger) Fatalw(msg string, fields ...logger.Field) + func (l *Logger) Info(args ...interface{}) + func (l *Logger) Infof(format string, args ...interface{}) + func (l *Logger) Infow(msg string, fields ...logger.Field) + func (l *Logger) IsDebug() bool + func (l *Logger) Named(name string) logger.Logger + func (l *Logger) Panic(args ...interface{}) + func (l *Logger) Panicf(format string, args ...interface{}) + func (l *Logger) Panicw(msg string, fields ...logger.Field) + func (l *Logger) Print(args ...interface{}) + func (l *Logger) Printf(format string, args ...interface{}) + func (l *Logger) Println(args ...interface{}) + func (l *Logger) Recover(msg string) + func (l *Logger) Warn(args ...interface{}) + func (l *Logger) Warnf(format string, args ...interface{}) + func (l *Logger) Warnw(msg string, fields ...logger.Field) + func (l *Logger) With(fields ...logger.Field) logger.Logger + func (l *Logger) WithNamespace(namespace string) *Logger + type Meta = map[string]interface + type Option func(cfg *Config) + func AsJSON() Option + func ToDiscardOutput() Option + func ToObserverOutput() Option + func WithLevel(level Level) Option + func WithSelectors(selectors ...string) Option