Versions in this module Expand all Collapse all v1 v1.0.3 Feb 29, 2024 v1.0.2 Feb 29, 2024 Changes in this version + const KeyRequestID + const KeyUserID + const KeyUsername + 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 DebugLevel = zapcore.DebugLevel + var Duration = zap.Duration + var Durations = zap.Durations + var Err = zap.Error + var ErrorLevel = zapcore.ErrorLevel + var Errors = zap.Errors + var FatalLevel = zapcore.FatalLevel + var Float32 = zap.Float32 + var Float32s = zap.Float32s + var Float64 = zap.Float64 + var Float64s = zap.Float64s + var InfoLevel = zapcore.InfoLevel + 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 Object = zap.Object + var PanicLevel = zapcore.PanicLevel + 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 + var WarnLevel = zapcore.WarnLevel + func CheckIntLevel(level int32) bool + func Debug(msg string, fields ...Field) + func DebugC(ctx context.Context, msg string, fields ...Field) + func Debugf(format string, v ...interface{}) + func DebugfC(ctx context.Context, format string, v ...interface{}) + func Debugw(msg string, keysAndValues ...interface{}) + func DebugwC(ctx context.Context, msg string, keysAndValues ...interface{}) + func Error(msg string, fields ...Field) + func ErrorC(ctx context.Context, msg string, fields ...Field) + func Errorf(format string, v ...interface{}) + func ErrorfC(ctx context.Context, format string, v ...interface{}) + func Fatal(msg string, fields ...Field) + func FatalC(ctx context.Context, msg string, fields ...Field) + func Fatalf(format string, v ...interface{}) + func FatalfC(ctx context.Context, format string, v ...interface{}) + func Flush() + func Info(msg string, fields ...Field) + func InfoC(ctx context.Context, msg string, fields ...Field) + func Infof(format string, v ...interface{}) + func InfofC(ctx context.Context, format string, v ...interface{}) + func Init(opts *Options) + func Panic(msg string, fields ...Field) + func PanicC(ctx context.Context, msg string, fields ...Field) + func Panicf(format string, v ...interface{}) + func PanicfC(ctx context.Context, format string, v ...interface{}) + func StdInfoLogger() *stdlog.Logger + func Version() string + func Warn(msg string, fields ...Field) + func WarnC(ctx context.Context, msg string, fields ...Field) + func Warnf(format string, v ...interface{}) + func WarnfC(ctx context.Context, format string, v ...interface{}) + func ZapLogger() *zap.Logger + type Field = zapcore.Field + type Level = zapcore.Level + type LogHelper interface + Error func(msg string, fields ...Field) + Errorf func(format string, v ...interface{}) + Info func(msg string, fields ...Field) + Infof func(format string, v ...interface{}) + Warn func(msg string, fields ...Field) + Warnf func(format string, v ...interface{}) + type Logger struct + func New(opts *Options) *Logger + func (l *Logger) Clone(opts ...Option) *Logger + func (l *Logger) Ctx(ctx context.Context) LoggerWithCtx + func (l *Logger) DPanicContext(ctx context.Context, msg string, fields ...zapcore.Field) + func (l *Logger) DPanicfContext(ctx context.Context, format string, v ...interface{}) + func (l *Logger) DebugContext(ctx context.Context, msg string, fields ...zapcore.Field) + func (l *Logger) DebugfContext(ctx context.Context, format string, v ...interface{}) + func (l *Logger) DebugwContext(ctx context.Context, format string, v ...interface{}) + func (l *Logger) ErrorContext(ctx context.Context, msg string, fields ...zapcore.Field) + func (l *Logger) ErrorfContext(ctx context.Context, format string, v ...interface{}) + func (l *Logger) FatalContext(ctx context.Context, msg string, fields ...zapcore.Field) + func (l *Logger) FatalfContext(ctx context.Context, format string, v ...interface{}) + func (l *Logger) Flush() + func (l *Logger) InfoContext(ctx context.Context, msg string, fields ...zapcore.Field) + func (l *Logger) InfofContext(ctx context.Context, format string, v ...interface{}) + func (l *Logger) PanicContext(ctx context.Context, msg string, fields ...zapcore.Field) + func (l *Logger) PanicfContext(ctx context.Context, format string, v ...interface{}) + func (l *Logger) Sugar() *SugaredLogger + func (l *Logger) WarnContext(ctx context.Context, msg string, fields ...zapcore.Field) + func (l *Logger) WarnfContext(ctx context.Context, format string, v ...interface{}) + func (l *Logger) WithOptions(opts ...zap.Option) *Logger + type LoggerWithCtx struct + func (l LoggerWithCtx) Clone() LoggerWithCtx + func (l LoggerWithCtx) Context() context.Context + func (l LoggerWithCtx) DPanic(msg string, fields ...zapcore.Field) + func (l LoggerWithCtx) Debug(msg string, fields ...zapcore.Field) + func (l LoggerWithCtx) Error(msg string, fields ...zapcore.Field) + func (l LoggerWithCtx) Fatal(msg string, fields ...zapcore.Field) + func (l LoggerWithCtx) Info(msg string, fields ...zapcore.Field) + func (l LoggerWithCtx) Logger() *Logger + func (l LoggerWithCtx) Panic(msg string, fields ...zapcore.Field) + func (l LoggerWithCtx) Sugar() SugaredLoggerWithCtx + func (l LoggerWithCtx) Warn(msg string, fields ...zapcore.Field) + func (l LoggerWithCtx) WithOptions(opts ...zap.Option) LoggerWithCtx + func (l LoggerWithCtx) ZapLogger() *zap.Logger + type Option func(l *Logger) + func WithCaller(on bool) Option + func WithErrorStatusLevel(lvl zapcore.Level) Option + func WithMinLevel(lvl zapcore.Level) Option + func WithStackTrace(on bool) Option + func WithTraceIDField(on bool) Option + type Options struct + Development bool + DisableCaller bool + DisableStacktrace bool + EnableColor bool + EnableTraceID bool + EnableTraceStack bool + ErrorOutputPaths []string + Format string + Level string + Name string + OutputPaths []string + func NewOptions() *Options + func (o *Options) AddFlags(fs *pflag.FlagSet) + func (o *Options) Build() error + func (o *Options) String() string + func (o *Options) Validate() []error + type SugaredLogger struct + func (s *SugaredLogger) Ctx(ctx context.Context) SugaredLoggerWithCtx + func (s *SugaredLogger) DPanicfContext(ctx context.Context, template string, args ...interface{}) + func (s *SugaredLogger) DPanicwContext(ctx context.Context, msg string, keysAndValues ...interface{}) + func (s *SugaredLogger) DebugfContext(ctx context.Context, template string, args ...interface{}) + func (s *SugaredLogger) DebugwContext(ctx context.Context, msg string, keysAndValues ...interface{}) + func (s *SugaredLogger) Desugar() *Logger + func (s *SugaredLogger) ErrorfContext(ctx context.Context, template string, args ...interface{}) + func (s *SugaredLogger) ErrorwContext(ctx context.Context, msg string, keysAndValues ...interface{}) + func (s *SugaredLogger) FatalfContext(ctx context.Context, template string, args ...interface{}) + func (s *SugaredLogger) FatalwContext(ctx context.Context, msg string, keysAndValues ...interface{}) + func (s *SugaredLogger) InfofContext(ctx context.Context, template string, args ...interface{}) + func (s *SugaredLogger) InfowContext(ctx context.Context, msg string, keysAndValues ...interface{}) + func (s *SugaredLogger) PanicfContext(ctx context.Context, template string, args ...interface{}) + func (s *SugaredLogger) PanicwContext(ctx context.Context, msg string, keysAndValues ...interface{}) + func (s *SugaredLogger) WarnfContext(ctx context.Context, template string, args ...interface{}) + func (s *SugaredLogger) WarnwContext(ctx context.Context, msg string, keysAndValues ...interface{}) + func (s *SugaredLogger) With(args ...interface{}) *SugaredLogger + type SugaredLoggerWithCtx struct + func (s SugaredLoggerWithCtx) DPanicf(template string, args ...interface{}) + func (s SugaredLoggerWithCtx) DPanicw(msg string, keysAndValues ...interface{}) + func (s SugaredLoggerWithCtx) Debugf(template string, args ...interface{}) + func (s SugaredLoggerWithCtx) Debugw(msg string, keysAndValues ...interface{}) + func (s SugaredLoggerWithCtx) Desugar() *Logger + func (s SugaredLoggerWithCtx) Errorf(template string, args ...interface{}) + func (s SugaredLoggerWithCtx) Errorw(msg string, keysAndValues ...interface{}) + func (s SugaredLoggerWithCtx) Fatalf(template string, args ...interface{}) + func (s SugaredLoggerWithCtx) Fatalw(msg string, keysAndValues ...interface{}) + func (s SugaredLoggerWithCtx) Infof(template string, args ...interface{}) + func (s SugaredLoggerWithCtx) Infow(msg string, keysAndValues ...interface{}) + func (s SugaredLoggerWithCtx) Panicf(template string, args ...interface{}) + func (s SugaredLoggerWithCtx) Panicw(msg string, keysAndValues ...interface{}) + func (s SugaredLoggerWithCtx) Warnf(template string, args ...interface{}) + func (s SugaredLoggerWithCtx) Warnw(msg string, keysAndValues ...interface{})