Versions in this module Expand all Collapse all v1 v1.1.2 Sep 28, 2025 v1.1.1 Jul 31, 2025 v1.1.0 May 9, 2025 v1.0.1 May 8, 2025 Changes in this version type Log + func ExtendDefaultHook(hs ...Hook) *Log + func ExtendDefaultHookFunc(hs ...HookFunc) *Log + func SetNewCallerCore(c *CallerCore) *Log v1.0.0 May 8, 2025 Changes in this version + type ArrayEncoder = zapcore.ArrayEncoder + type ArrayMarshaler = zapcore.ArrayMarshaler + type Event struct + func OnDPanic() *Event + func OnDPanicContext(ctx context.Context) *Event + func OnDebug() *Event + func OnDebugContext(ctx context.Context) *Event + func OnError() *Event + func OnErrorContext(ctx context.Context) *Event + func OnFatal() *Event + func OnFatalContext(ctx context.Context) *Event + func OnInfo() *Event + func OnInfoContext(ctx context.Context) *Event + func OnLevel(level Level) *Event + func OnLevelContext(ctx context.Context, level Level) *Event + func OnPanic() *Event + func OnPanicContext(ctx context.Context) *Event + func OnWarn() *Event + func OnWarnContext(ctx context.Context) *Event + func (e *Event) Any(key string, v any) *Event + func (e *Event) Array(key string, v ArrayMarshaler) *Event + func (e *Event) Binary(key string, v []byte) *Event + func (e *Event) Bool(key string, v bool) *Event + func (e *Event) Boolp(key string, v *bool) *Event + func (e *Event) ByteString(key string, v []byte) *Event + func (e *Event) Caller(depth int) *Event + func (e *Event) CallerFile(depth int) *Event + func (e *Event) Complex128(key string, v complex128) *Event + func (e *Event) Complex128p(key string, v *complex128) *Event + func (e *Event) Complex64(key string, v complex64) *Event + func (e *Event) Complex64p(key string, v *complex64) *Event + func (e *Event) Configure(f func(e *Event)) *Event + func (e *Event) Dict(key string, val ...Field) *Event + func (e *Event) DoHook(hs ...Hook) *Event + func (e *Event) DoHookFunc(hs ...HookFunc) *Event + func (e *Event) Duration(key string, v time.Duration) *Event + func (e *Event) Durationp(key string, v *time.Duration) *Event + func (e *Event) Error(val error) *Event + func (e *Event) Errors(key string, val []error) *Event + func (e *Event) ExtendHook(hs ...Hook) *Event + func (e *Event) ExtendHookFunc(hs ...HookFunc) *Event + func (e *Event) Float32(key string, v float32) *Event + func (e *Event) Float32p(key string, v *float32) *Event + func (e *Event) Float64(key string, v float64) *Event + func (e *Event) Float64p(key string, v *float64) *Event + func (e *Event) Inline(val ObjectMarshaler) *Event + func (e *Event) Int(key string, v int) *Event + func (e *Event) Int16(key string, v int16) *Event + func (e *Event) Int16p(key string, v *int16) *Event + func (e *Event) Int32(key string, v int32) *Event + func (e *Event) Int32p(key string, v *int32) *Event + func (e *Event) Int64(key string, v int64) *Event + func (e *Event) Int64p(key string, v *int64) *Event + func (e *Event) Int8(key string, v int8) *Event + func (e *Event) Int8p(key string, v *int8) *Event + func (e *Event) Intp(key string, v *int) *Event + func (e *Event) Msg(msg string) + func (e *Event) NamedError(key string, val error) *Event + func (e *Event) Namespace(key string) *Event + func (e *Event) Object(key string, val ObjectMarshaler) *Event + func (e *Event) Print(args ...any) + func (e *Event) Printf(template string, args ...any) + func (e *Event) Reflect(key string, v any) *Event + func (e *Event) Stack(key string) *Event + func (e *Event) StackSkip(key string, skip int) *Event + func (e *Event) String(key string, v string) *Event + func (e *Event) Stringer(key string, v fmt.Stringer) *Event + func (e *Event) Stringp(key string, v *string) *Event + func (e *Event) Time(key string, v time.Time) *Event + func (e *Event) Timep(key string, v *time.Time) *Event + func (e *Event) Uint(key string, v uint) *Event + func (e *Event) Uint16(key string, v uint16) *Event + func (e *Event) Uint16p(key string, v *uint16) *Event + func (e *Event) Uint32(key string, v uint32) *Event + func (e *Event) Uint32p(key string, v *uint32) *Event + func (e *Event) Uint64(key string, v uint64) *Event + func (e *Event) Uint64p(key string, v *uint64) *Event + func (e *Event) Uint8(key string, v uint8) *Event + func (e *Event) Uint8p(key string, v *uint8) *Event + func (e *Event) Uintp(key string, v *uint) *Event + func (e *Event) Uintptr(key string, v uintptr) *Event + func (e *Event) Uintptrp(key string, v *uintptr) *Event + func (e *Event) With(fields ...Field) *Event + func (e *Event) WithContext(ctx context.Context) *Event + func (e *Event) WithNewHook(hs ...Hook) *Event type Field + func Array(key string, val ArrayMarshaler) Field + type Hook interface + DoHook func(ctx context.Context) Field + type HookFunc func(context.Context) Field + func (hf HookFunc) DoHook(ctx context.Context) Field + type ImmutableAny ImmutableNamedField[any] + func (m *ImmutableAny) DoHook(ctx context.Context) Field + type ImmutableBinary ImmutableNamedField[[]byte] + func (m ImmutableBinary) DoHook(ctx context.Context) Field + type ImmutableBool ImmutableNamedField[bool] + func (m *ImmutableBool) DoHook(ctx context.Context) Field + type ImmutableBoolp ImmutableNamedField[*bool] + func (m *ImmutableBoolp) DoHook(ctx context.Context) Field + type ImmutableByteString ImmutableNamedField[[]byte] + func (m *ImmutableByteString) DoHook(ctx context.Context) Field + type ImmutableComplex128 ImmutableNamedField[complex128] + func (m *ImmutableComplex128) DoHook(ctx context.Context) Field + type ImmutableComplex128p ImmutableNamedField[*complex128] + func (m *ImmutableComplex128p) DoHook(ctx context.Context) Field + type ImmutableComplex64 ImmutableNamedField[complex64] + func (m *ImmutableComplex64) DoHook(ctx context.Context) Field + type ImmutableComplex64p ImmutableNamedField[*complex64] + func (m *ImmutableComplex64p) DoHook(ctx context.Context) Field + type ImmutableDict ImmutableNamedField[[]Field] + func (m *ImmutableDict) DoHook(ctx context.Context) Field + type ImmutableDuration ImmutableNamedField[time.Duration] + func (m *ImmutableDuration) DoHook(ctx context.Context) Field + type ImmutableDurationp ImmutableNamedField[*time.Duration] + func (m *ImmutableDurationp) DoHook(ctx context.Context) Field + type ImmutableErr ImmutableField[error] + func (m ImmutableErr) DoHook(ctx context.Context) Field + type ImmutableErrors ImmutableNamedField[[]error] + func (m ImmutableErrors) DoHook(ctx context.Context) Field + type ImmutableField struct + Value T + type ImmutableFloat32 ImmutableNamedField[float32] + func (m *ImmutableFloat32) DoHook(ctx context.Context) Field + type ImmutableFloat32p ImmutableNamedField[*float32] + func (m *ImmutableFloat32p) DoHook(ctx context.Context) Field + type ImmutableFloat64 ImmutableNamedField[float64] + func (m *ImmutableFloat64) DoHook(ctx context.Context) Field + type ImmutableFloat64p ImmutableNamedField[*float64] + func (m *ImmutableFloat64p) DoHook(ctx context.Context) Field + type ImmutableInline ImmutableField[ObjectMarshaler] + func (m *ImmutableInline) DoHook(ctx context.Context) Field + type ImmutableInt ImmutableNamedField[int] + func (m *ImmutableInt) DoHook(ctx context.Context) Field + type ImmutableInt16 ImmutableNamedField[int16] + func (m *ImmutableInt16) DoHook(ctx context.Context) Field + type ImmutableInt16p ImmutableNamedField[*int16] + func (m *ImmutableInt16p) DoHook(ctx context.Context) Field + type ImmutableInt32 ImmutableNamedField[int32] + func (m *ImmutableInt32) DoHook(ctx context.Context) Field + type ImmutableInt32p ImmutableNamedField[*int32] + func (m *ImmutableInt32p) DoHook(ctx context.Context) Field + type ImmutableInt64 ImmutableNamedField[int64] + func (m *ImmutableInt64) DoHook(ctx context.Context) Field + type ImmutableInt64p ImmutableNamedField[*int64] + func (m *ImmutableInt64p) DoHook(ctx context.Context) Field + type ImmutableInt8 ImmutableNamedField[int8] + func (m *ImmutableInt8) DoHook(ctx context.Context) Field + type ImmutableInt8p ImmutableNamedField[*int8] + func (m *ImmutableInt8p) DoHook(ctx context.Context) Field + type ImmutableIntp ImmutableNamedField[*int] + func (m *ImmutableIntp) DoHook(ctx context.Context) Field + type ImmutableNamedError ImmutableNamedField[error] + func (m ImmutableNamedError) DoHook(ctx context.Context) Field + type ImmutableNamedField struct + Key string + Value T + type ImmutableNamespace ImmutableField[string] + func (m *ImmutableNamespace) DoHook(ctx context.Context) Field + type ImmutableObject ImmutableNamedField[ObjectMarshaler] + func (m *ImmutableObject) DoHook(ctx context.Context) Field + type ImmutableReflect ImmutableNamedField[any] + func (m *ImmutableReflect) DoHook(ctx context.Context) Field + type ImmutableStack struct + Key string + func (m *ImmutableStack) DoHook(ctx context.Context) Field + type ImmutableStackSkip struct + Key string + Skip int + func (m *ImmutableStackSkip) DoHook(ctx context.Context) Field + type ImmutableString ImmutableNamedField[string] + func (m *ImmutableString) DoHook(ctx context.Context) Field + type ImmutableStringer ImmutableNamedField[fmt.Stringer] + func (m *ImmutableStringer) DoHook(ctx context.Context) Field + type ImmutableStringp ImmutableNamedField[*string] + func (m *ImmutableStringp) DoHook(ctx context.Context) Field + type ImmutableTime ImmutableNamedField[time.Time] + func (m *ImmutableTime) DoHook(ctx context.Context) Field + type ImmutableTimep ImmutableNamedField[*time.Time] + func (m *ImmutableTimep) DoHook(ctx context.Context) Field + type ImmutableUint ImmutableNamedField[uint] + func (m *ImmutableUint) DoHook(ctx context.Context) Field + type ImmutableUint16 ImmutableNamedField[uint16] + func (m *ImmutableUint16) DoHook(ctx context.Context) Field + type ImmutableUint16p ImmutableNamedField[*uint16] + func (m *ImmutableUint16p) DoHook(ctx context.Context) Field + type ImmutableUint32 ImmutableNamedField[uint32] + func (m *ImmutableUint32) DoHook(ctx context.Context) Field + type ImmutableUint32p ImmutableNamedField[*uint32] + func (m *ImmutableUint32p) DoHook(ctx context.Context) Field + type ImmutableUint64 ImmutableNamedField[uint64] + func (m *ImmutableUint64) DoHook(ctx context.Context) Field + type ImmutableUint64p ImmutableNamedField[*uint64] + func (m *ImmutableUint64p) DoHook(ctx context.Context) Field + type ImmutableUint8 ImmutableNamedField[uint8] + func (m *ImmutableUint8) DoHook(ctx context.Context) Field + type ImmutableUint8p ImmutableNamedField[*uint8] + func (m *ImmutableUint8p) DoHook(ctx context.Context) Field + type ImmutableUintp ImmutableNamedField[*uint] + func (m *ImmutableUintp) DoHook(ctx context.Context) Field + type ImmutableUintptr ImmutableNamedField[uintptr] + func (m *ImmutableUintptr) DoHook(ctx context.Context) Field + type ImmutableUintptrp ImmutableNamedField[*uintptr] + func (m *ImmutableUintptrp) DoHook(ctx context.Context) Field type Log + func ExtendHook(hs ...Hook) *Log + func ExtendHookFunc(hs ...HookFunc) *Log + func SetDefaultHook(hs ...Hook) *Log + func SetDefaultHookFunc(hs ...HookFunc) *Log + func WithNewHook(hs ...Hook) *Log + func WithNewHookFunc(hs ...HookFunc) *Log + func (l *Log) ExtendDefaultHook(hs ...Hook) *Log + func (l *Log) ExtendDefaultHookFunc(hs ...HookFunc) *Log + func (l *Log) ExtendHook(hs ...Hook) *Log + func (l *Log) ExtendHookFunc(hs ...HookFunc) *Log + func (l *Log) OnDPanic() *Event + func (l *Log) OnDPanicContext(ctx context.Context) *Event + func (l *Log) OnDebug() *Event + func (l *Log) OnDebugContext(ctx context.Context) *Event + func (l *Log) OnError() *Event + func (l *Log) OnErrorContext(ctx context.Context) *Event + func (l *Log) OnFatal() *Event + func (l *Log) OnFatalContext(ctx context.Context) *Event + func (l *Log) OnInfo() *Event + func (l *Log) OnInfoContext(ctx context.Context) *Event + func (l *Log) OnLevel(level Level) *Event + func (l *Log) OnLevelContext(ctx context.Context, level Level) *Event + func (l *Log) OnPanic() *Event + func (l *Log) OnPanicContext(ctx context.Context) *Event + func (l *Log) OnWarn() *Event + func (l *Log) OnWarnContext(ctx context.Context) *Event + func (l *Log) SetNewCallerCore(c *CallerCore) *Log + func (l *Log) WithNewHook(hs ...Hook) *Log + func (l *Log) WithNewHookFunc(hs ...HookFunc) *Log + type MutableAny MutableNamedField[any] + func (m *MutableAny) DoHook(ctx context.Context) Field + type MutableBinary MutableNamedField[[]byte] + func (m *MutableBinary) DoHook(ctx context.Context) Field + type MutableBool MutableNamedField[bool] + func (m *MutableBool) DoHook(ctx context.Context) Field + type MutableBoolp MutableNamedField[*bool] + func (m *MutableBoolp) DoHook(ctx context.Context) Field + type MutableByteString MutableNamedField[[]byte] + func (m *MutableByteString) DoHook(ctx context.Context) Field + type MutableComplex128 MutableNamedField[complex128] + func (m *MutableComplex128) DoHook(ctx context.Context) Field + type MutableComplex128p MutableNamedField[*complex128] + func (m *MutableComplex128p) DoHook(ctx context.Context) Field + type MutableComplex64 MutableNamedField[complex64] + func (m *MutableComplex64) DoHook(ctx context.Context) Field + type MutableComplex64p MutableNamedField[*complex64] + func (m *MutableComplex64p) DoHook(ctx context.Context) Field + type MutableDict MutableNamedField[[]Field] + func (m *MutableDict) DoHook(ctx context.Context) Field + type MutableDuration MutableNamedField[time.Duration] + func (m *MutableDuration) DoHook(ctx context.Context) Field + type MutableDurationp MutableNamedField[*time.Duration] + func (m *MutableDurationp) DoHook(ctx context.Context) Field + type MutableErr MutableFixedNamedField[error] + func (m *MutableErr) DoHook(ctx context.Context) Field + type MutableErrors MutableNamedField[[]error] + func (m *MutableErrors) DoHook(ctx context.Context) Field + type MutableFixedNamedField struct + Fc func(context.Context) T + type MutableFloat32 MutableNamedField[float32] + func (m *MutableFloat32) DoHook(ctx context.Context) Field + type MutableFloat32p MutableNamedField[*float32] + func (m *MutableFloat32p) DoHook(ctx context.Context) Field + type MutableFloat64 MutableNamedField[float64] + func (m *MutableFloat64) DoHook(ctx context.Context) Field + type MutableFloat64p MutableNamedField[*float64] + func (m *MutableFloat64p) DoHook(ctx context.Context) Field + type MutableInline MutableFixedNamedField[ObjectMarshaler] + func (m *MutableInline) DoHook(ctx context.Context) Field + type MutableInt MutableNamedField[int] + func (m *MutableInt) DoHook(ctx context.Context) Field + type MutableInt16 MutableNamedField[int16] + func (m *MutableInt16) DoHook(ctx context.Context) Field + type MutableInt16p MutableNamedField[*int16] + func (m *MutableInt16p) DoHook(ctx context.Context) Field + type MutableInt32 MutableNamedField[int32] + func (m *MutableInt32) DoHook(ctx context.Context) Field + type MutableInt32p MutableNamedField[*int32] + func (m *MutableInt32p) DoHook(ctx context.Context) Field + type MutableInt64 MutableNamedField[int64] + func (m *MutableInt64) DoHook(ctx context.Context) Field + type MutableInt64p MutableNamedField[*int64] + func (m *MutableInt64p) DoHook(ctx context.Context) Field + type MutableInt8 MutableNamedField[int8] + func (m *MutableInt8) DoHook(ctx context.Context) Field + type MutableInt8p MutableNamedField[*int8] + func (m *MutableInt8p) DoHook(ctx context.Context) Field + type MutableIntp MutableNamedField[*int] + func (m *MutableIntp) DoHook(ctx context.Context) Field + type MutableNamedError MutableNamedField[error] + func (m *MutableNamedError) DoHook(ctx context.Context) Field + type MutableNamedField struct + Fc func(context.Context) T + Key string + type MutableNamespace MutableFixedNamedField[string] + func (m *MutableNamespace) DoHook(ctx context.Context) Field + type MutableObject MutableNamedField[ObjectMarshaler] + func (m *MutableObject) DoHook(ctx context.Context) Field + type MutableReflect MutableNamedField[any] + func (m *MutableReflect) DoHook(ctx context.Context) Field + type MutableString MutableNamedField[string] + func (m *MutableString) DoHook(ctx context.Context) Field + type MutableStringer MutableNamedField[fmt.Stringer] + func (m *MutableStringer) DoHook(ctx context.Context) Field + type MutableStringp MutableNamedField[*string] + func (m *MutableStringp) DoHook(ctx context.Context) Field + type MutableTime MutableNamedField[time.Time] + func (m *MutableTime) DoHook(ctx context.Context) Field + type MutableTimep MutableNamedField[*time.Time] + func (m *MutableTimep) DoHook(ctx context.Context) Field + type MutableUint MutableNamedField[uint] + func (m *MutableUint) DoHook(ctx context.Context) Field + type MutableUint16 MutableNamedField[uint16] + func (m *MutableUint16) DoHook(ctx context.Context) Field + type MutableUint16p MutableNamedField[*uint16] + func (m *MutableUint16p) DoHook(ctx context.Context) Field + type MutableUint32 MutableNamedField[uint32] + func (m *MutableUint32) DoHook(ctx context.Context) Field + type MutableUint32p MutableNamedField[*uint32] + func (m *MutableUint32p) DoHook(ctx context.Context) Field + type MutableUint64 MutableNamedField[uint64] + func (m *MutableUint64) DoHook(ctx context.Context) Field + type MutableUint64p MutableNamedField[*uint64] + func (m *MutableUint64p) DoHook(ctx context.Context) Field + type MutableUint8 MutableNamedField[uint8] + func (m *MutableUint8) DoHook(ctx context.Context) Field + type MutableUint8p MutableNamedField[*uint8] + func (m *MutableUint8p) DoHook(ctx context.Context) Field + type MutableUintp MutableNamedField[*uint] + func (m *MutableUintp) DoHook(ctx context.Context) Field + type MutableUintptr MutableNamedField[uintptr] + func (m *MutableUintptr) DoHook(ctx context.Context) Field + type MutableUintptrp MutableNamedField[*uintptr] + func (m *MutableUintptrp) DoHook(ctx context.Context) Field + type ObjectEncoder = zapcore.ObjectEncoder v1.0.0-rc1 May 8, 2025 v1.0.0-rc0 May 8, 2025 v0 v0.3.0 Mar 31, 2025 Changes in this version + const AdapterConsole + const AdapterConsoleCustom + const AdapterCustom + const AdapterFile + const AdapterFileCustom + const AdapterMulti + const AdapterMultiCustom + const DPanicLevel + const DebugLevel + const EncodeLevelCapital + const EncodeLevelCapitalColor + const EncodeLevelLowercase + const EncodeLevelLowercaseColor + const ErrorLevel + const FatalLevel + const FormatConsole + const FormatJson + const InfoLevel + const PanicLevel + const WarnLevel + func DPanic(args ...any) + func DPanicContext(ctx context.Context, args ...any) + func DPanicf(template string, args ...any) + func DPanicfContext(ctx context.Context, template string, args ...any) + func DPanicw(msg string, keysAndValues ...any) + func DPanicwContext(ctx context.Context, msg string, keysAndValues ...any) + func DPanicx(msg string, fields ...Field) + func DPanicxContext(ctx context.Context, msg string, fields ...Field) + func Debug(args ...any) + func DebugContext(ctx context.Context, args ...any) + func Debugf(template string, args ...any) + func DebugfContext(ctx context.Context, template string, args ...any) + func Debugw(msg string, keysAndValues ...any) + func DebugwContext(ctx context.Context, msg string, keysAndValues ...any) + func Debugx(msg string, fields ...Field) + func DebugxContext(ctx context.Context, msg string, fields ...Field) + func Enabled(lvl Level) bool + func Error(args ...any) + func ErrorContext(ctx context.Context, args ...any) + func Errorf(template string, args ...any) + func ErrorfContext(ctx context.Context, template string, args ...any) + func Errorw(msg string, keysAndValues ...any) + func ErrorwContext(ctx context.Context, msg string, keysAndValues ...any) + func Errorx(msg string, fields ...Field) + func ErrorxContext(ctx context.Context, msg string, fields ...Field) + func Fatal(args ...any) + func FatalContext(ctx context.Context, args ...any) + func Fatalf(template string, args ...any) + func FatalfContext(ctx context.Context, template string, args ...any) + func Fatalw(msg string, keysAndValues ...any) + func FatalwContext(ctx context.Context, msg string, keysAndValues ...any) + func Fatalx(msg string, fields ...Field) + func FatalxContext(ctx context.Context, msg string, fields ...Field) + func Info(args ...any) + func InfoContext(ctx context.Context, args ...any) + func Infof(template string, args ...any) + func InfofContext(ctx context.Context, template string, args ...any) + func Infow(msg string, keysAndValues ...any) + func InfowContext(ctx context.Context, msg string, keysAndValues ...any) + func Infox(msg string, fields ...Field) + func InfoxContext(ctx context.Context, msg string, fields ...Field) + func Log2(ctx context.Context, level Level, args ...any) + func Logf(ctx context.Context, level Level, template string, args ...any) + func Logger() *zap.Logger + func Logw(ctx context.Context, level Level, msg string, keysAndValues ...any) + func Logx(ctx context.Context, level Level, msg string, fields ...Field) + func Panic(args ...any) + func PanicContext(ctx context.Context, args ...any) + func Panicf(template string, args ...any) + func PanicfContext(ctx context.Context, template string, args ...any) + func Panicw(msg string, keysAndValues ...any) + func PanicwContext(ctx context.Context, msg string, keysAndValues ...any) + func Panicx(msg string, fields ...Field) + func PanicxContext(ctx context.Context, msg string, fields ...Field) + func PoolGet() *fieldContainer + func PoolPut(c *fieldContainer) + func ReplaceGlobals(logger *Log) + func SetLevelWithText(text string) error + func Sugar() *zap.SugaredLogger + func Sync() error + func V(lvl Level) bool + func Warn(args ...any) + func WarnContext(ctx context.Context, args ...any) + func Warnf(template string, args ...any) + func WarnfContext(ctx context.Context, template string, args ...any) + func Warnw(msg string, keysAndValues ...any) + func WarnwContext(ctx context.Context, msg string, keysAndValues ...any) + func Warnx(msg string, fields ...Field) + func WarnxContext(ctx context.Context, msg string, fields ...Field) + type AtomicLevel = zap.AtomicLevel + func New(opts ...Option) (*zap.Logger, AtomicLevel) + func NewAtomicLevel() AtomicLevel + func NewAtomicLevelAt(l Level) AtomicLevel + func ParseAtomicLevel(text string) (AtomicLevel, error) + func UnderlyingCallerLevel() AtomicLevel + type CallerCore struct + Caller func(depth int, skipPackages ...string) Field + Skip int + SkipPackages []string + func NewCallerCore() *CallerCore + func (c *CallerCore) AddSkip(callerSkip int) *CallerCore + func (c *CallerCore) AddSkipPackage(vs ...string) *CallerCore + func (c *CallerCore) Enabled(lvl Level) bool + func (c *CallerCore) Level() Level + func (c *CallerCore) SetLevel(lv Level) *CallerCore + func (c *CallerCore) UnderlyingLevel() AtomicLevel + func (c *CallerCore) UseExternalLevel(l AtomicLevel) *CallerCore + type Config struct + Adapter string + EncodeLevel string + EncoderConfig *zapcore.EncoderConfig + File LumberjackFile + Format string + Level string + Stack bool + Writer []io.Writer + type Field = zap.Field + func Any(key string, val any) Field + func Binary(key string, val []byte) Field + func Bool(key string, val bool) Field + func Boolp(key string, val *bool) Field + func ByteString(key string, val []byte) Field + func Complex128(key string, val complex128) Field + func Complex128p(key string, val *complex128) Field + func Complex64(key string, val complex64) Field + func Complex64p(key string, val *complex64) Field + func DefaultCaller(depth int, skipPackages ...string) Field + func DefaultCallerFile(depth int, skipPackages ...string) Field + func Dict(key string, val ...Field) Field + func Duration(key string, val time.Duration) Field + func Durationp(key string, val *time.Duration) Field + func Err(val error) Field + func Errors(key string, val []error) Field + func Float32(key string, val float32) Field + func Float32p(key string, val *float32) Field + func Float64(key string, val float64) Field + func Float64p(key string, val *float64) Field + func Inline(val ObjectMarshaler) Field + func Int(key string, val int) Field + func Int16(key string, val int16) Field + func Int16p(key string, val *int16) Field + func Int32(key string, val int32) Field + func Int32p(key string, val *int32) Field + func Int64(key string, val int64) Field + func Int64p(key string, val *int64) Field + func Int8(key string, val int8) Field + func Int8p(key string, val *int8) Field + func Intp(key string, val *int) Field + func NamedError(key string, val error) Field + func Namespace(key string) Field + func Object(key string, val ObjectMarshaler) Field + func Reflect(key string, val any) Field + func Skip() Field + func Stack(key string) Field + func StackSkip(key string, skip int) Field + func String(key string, val string) Field + func Stringer(key string, val fmt.Stringer) Field + func Stringp(key string, val *string) Field + func Time(key string, val time.Time) Field + func Timep(key string, val *time.Time) Field + func Uint(key string, val uint) Field + func Uint16(key string, val uint16) Field + func Uint16p(key string, val *uint16) Field + func Uint32(key string, val uint32) Field + func Uint32p(key string, val *uint32) Field + func Uint64(key string, val uint64) Field + func Uint64p(key string, val *uint64) Field + func Uint8(key string, val uint8) Field + func Uint8p(key string, val *uint8) Field + func Uintp(key string, val *uint) Field + func Uintptr(key string, val uintptr) Field + func Uintptrp(key string, val *uintptr) Field + type Level = zapcore.Level + func GetLevel() Level + type Log struct + func AddCallerSkip(callerSkip int) *Log + func AddCallerSkipPackage(vs ...string) *Log + func Named(name string) *Log + func NewLogger(opts ...Option) *Log + func NewLoggerWith(logger *zap.Logger, lv AtomicLevel) *Log + func SetCallerLevel(lv Level) *Log + func SetDefaultValuer(vs ...Valuer) *Log + func SetLevel(lv Level) *Log + func UnderlyingLogger() *Log + func UseExternalCallerLevel(lvl AtomicLevel) *Log + func With(fields ...Field) *Log + func WithNewValuer(fs ...Valuer) *Log + func WithValuer(vs ...Valuer) *Log + func (l *Log) AddCallerSkip(callerSkip int) *Log + func (l *Log) AddCallerSkipPackage(vs ...string) *Log + func (l *Log) DPanic(args ...any) + func (l *Log) DPanicContext(ctx context.Context, args ...any) + func (l *Log) DPanicf(template string, args ...any) + func (l *Log) DPanicfContext(ctx context.Context, template string, args ...any) + func (l *Log) DPanicw(msg string, keysAndValues ...any) + func (l *Log) DPanicwContext(ctx context.Context, msg string, keysAndValues ...any) + func (l *Log) DPanicx(msg string, fields ...Field) + func (l *Log) DPanicxContext(ctx context.Context, msg string, fields ...Field) + func (l *Log) Debug(args ...any) + func (l *Log) DebugContext(ctx context.Context, args ...any) + func (l *Log) Debugf(template string, args ...any) + func (l *Log) DebugfContext(ctx context.Context, template string, args ...any) + func (l *Log) Debugw(msg string, keysAndValues ...any) + func (l *Log) DebugwContext(ctx context.Context, msg string, keysAndValues ...any) + func (l *Log) Debugx(msg string, fields ...Field) + func (l *Log) DebugxContext(ctx context.Context, msg string, fields ...Field) + func (l *Log) Enabled(lvl Level) bool + func (l *Log) Error(args ...any) + func (l *Log) ErrorContext(ctx context.Context, args ...any) + func (l *Log) Errorf(template string, args ...any) + func (l *Log) ErrorfContext(ctx context.Context, template string, args ...any) + func (l *Log) Errorw(msg string, keysAndValues ...any) + func (l *Log) ErrorwContext(ctx context.Context, msg string, keysAndValues ...any) + func (l *Log) Errorx(msg string, fields ...Field) + func (l *Log) ErrorxContext(ctx context.Context, msg string, fields ...Field) + func (l *Log) Fatal(args ...any) + func (l *Log) FatalContext(ctx context.Context, args ...any) + func (l *Log) Fatalf(template string, args ...any) + func (l *Log) FatalfContext(ctx context.Context, template string, args ...any) + func (l *Log) Fatalw(msg string, keysAndValues ...any) + func (l *Log) FatalwContext(ctx context.Context, msg string, keysAndValues ...any) + func (l *Log) Fatalx(msg string, fields ...Field) + func (l *Log) FatalxContext(ctx context.Context, msg string, fields ...Field) + func (l *Log) GetLevel() Level + func (l *Log) Info(args ...any) + func (l *Log) InfoContext(ctx context.Context, args ...any) + func (l *Log) Infof(template string, args ...any) + func (l *Log) InfofContext(ctx context.Context, template string, args ...any) + func (l *Log) Infow(msg string, keysAndValues ...any) + func (l *Log) InfowContext(ctx context.Context, msg string, keysAndValues ...any) + func (l *Log) Infox(msg string, fields ...Field) + func (l *Log) InfoxContext(ctx context.Context, msg string, fields ...Field) + func (l *Log) Log(ctx context.Context, level Level, args ...any) + func (l *Log) Logf(ctx context.Context, level Level, template string, args ...any) + func (l *Log) Logger() *zap.Logger + func (l *Log) Logw(ctx context.Context, level Level, msg string, keysAndValues ...any) + func (l *Log) Logx(ctx context.Context, level Level, msg string, fields ...Field) + func (l *Log) Named(name string) *Log + func (l *Log) Panic(args ...any) + func (l *Log) PanicContext(ctx context.Context, args ...any) + func (l *Log) Panicf(template string, args ...any) + func (l *Log) PanicfContext(ctx context.Context, template string, args ...any) + func (l *Log) Panicw(msg string, keysAndValues ...any) + func (l *Log) PanicwContext(ctx context.Context, msg string, keysAndValues ...any) + func (l *Log) Panicx(msg string, fields ...Field) + func (l *Log) PanicxContext(ctx context.Context, msg string, fields ...Field) + func (l *Log) SetCaller(f func(depth int, skipPackages ...string) Field) *Log + func (l *Log) SetCallerLevel(lv Level) *Log + func (l *Log) SetDefaultValuer(fs ...Valuer) *Log + func (l *Log) SetLevel(lv Level) *Log + func (l *Log) SetLevelWithText(text string) error + func (l *Log) Sugar() *zap.SugaredLogger + func (l *Log) Sync() error + func (l *Log) UnderlyingCallerLevel() AtomicLevel + func (l *Log) UseExternalCallerLevel(lvl AtomicLevel) *Log + func (l *Log) V(lvl Level) bool + func (l *Log) Warn(args ...any) + func (l *Log) WarnContext(ctx context.Context, args ...any) + func (l *Log) Warnf(template string, args ...any) + func (l *Log) WarnfContext(ctx context.Context, template string, args ...any) + func (l *Log) Warnw(msg string, keysAndValues ...any) + func (l *Log) WarnwContext(ctx context.Context, msg string, keysAndValues ...any) + func (l *Log) Warnx(msg string, fields ...Field) + func (l *Log) WarnxContext(ctx context.Context, msg string, fields ...Field) + func (l *Log) With(fields ...Field) *Log + func (l *Log) WithNewValuer(fs ...Valuer) *Log + func (l *Log) WithValuer(fs ...Valuer) *Log + type LumberjackFile struct + Compress bool + Filename string + LocalTime bool + MaxAge int + MaxBackups int + MaxSize int + Path string + type ObjectMarshaler = zapcore.ObjectMarshaler + type Option func(c *Config) + func WithAdapter(adapter string, writer ...io.Writer) Option + func WithConfig(cfg Config) Option + func WithEnableCompress() Option + func WithEnableLocalTime() Option + func WithEncodeLevel(encodeLevel string) Option + func WithEncoderConfig(encoderConfig *zapcore.EncoderConfig) Option + func WithFilename(filename string) Option + func WithFormat(format string) Option + func WithLevel(level string) Option + func WithMaxAge(maxAge int) Option + func WithMaxBackups(maxBackups int) Option + func WithMaxSize(maxSize int) Option + func WithPath(path string) Option + func WithStack(stack bool) Option + type Valuer func(ctx context.Context) Field + func App(v string) Valuer + func Caller(depth int, skipPackages ...string) Valuer + func Component(v string) Valuer + func File(depth int, skipPackages ...string) Valuer + func FromAny(key string, vf func(context.Context) any) Valuer + func FromBinary(key string, vf func(context.Context) []byte) Valuer + func FromBool(key string, vf func(context.Context) bool) Valuer + func FromBoolp(key string, vf func(context.Context) *bool) Valuer + func FromByteString(key string, vf func(context.Context) []byte) Valuer + func FromComplex128(key string, vf func(context.Context) complex128) Valuer + func FromComplex128p(key string, vf func(context.Context) *complex128) Valuer + func FromComplex64(key string, vf func(context.Context) complex64) Valuer + func FromComplex64p(key string, vf func(context.Context) *complex64) Valuer + func FromDuration(key string, vf func(context.Context) time.Duration) Valuer + func FromDurationp(key string, vf func(context.Context) *time.Duration) Valuer + func FromErr(vf func(context.Context) error) Valuer + func FromErrors(key string, vf func(context.Context) []error) Valuer + func FromFloat32(key string, vf func(context.Context) float32) Valuer + func FromFloat32p(key string, vf func(context.Context) *float32) Valuer + func FromFloat64(key string, vf func(context.Context) float64) Valuer + func FromFloat64p(key string, vf func(context.Context) *float64) Valuer + func FromInt(key string, vf func(context.Context) int) Valuer + func FromInt16(key string, vf func(context.Context) int16) Valuer + func FromInt16p(key string, vf func(context.Context) *int16) Valuer + func FromInt32(key string, vf func(context.Context) int32) Valuer + func FromInt32p(key string, vf func(context.Context) *int32) Valuer + func FromInt64(key string, vf func(context.Context) int64) Valuer + func FromInt64p(key string, vf func(context.Context) *int64) Valuer + func FromInt8(key string, vf func(context.Context) int8) Valuer + func FromInt8p(key string, vf func(context.Context) *int8) Valuer + func FromIntp(key string, vf func(context.Context) *int) Valuer + func FromNamedError(key string, vf func(context.Context) error) Valuer + func FromReflect(key string, vf func(context.Context) any) Valuer + func FromString(key string, vf func(context.Context) string) Valuer + func FromStringer(key string, vf func(context.Context) fmt.Stringer) Valuer + func FromStringp(key string, vf func(context.Context) *string) Valuer + func FromTime(key string, vf func(context.Context) time.Time) Valuer + func FromTimep(key string, vf func(context.Context) *time.Time) Valuer + func FromUint(key string, vf func(context.Context) uint) Valuer + func FromUint16(key string, vf func(context.Context) uint16) Valuer + func FromUint16p(key string, vf func(context.Context) *uint16) Valuer + func FromUint32(key string, vf func(context.Context) uint32) Valuer + func FromUint32p(key string, vf func(context.Context) *uint32) Valuer + func FromUint64(key string, vf func(context.Context) uint64) Valuer + func FromUint64p(key string, vf func(context.Context) *uint64) Valuer + func FromUint8(key string, vf func(context.Context) uint8) Valuer + func FromUint8p(key string, vf func(context.Context) *uint8) Valuer + func FromUintp(key string, vf func(context.Context) *uint) Valuer + func FromUintptr(key string, vf func(context.Context) uintptr) Valuer + func FromUintptrp(key string, vf func(context.Context) *uintptr) Valuer + func ImmutAny(key string, v any) Valuer + func ImmutBinary(key string, v []byte) Valuer + func ImmutBool(key string, v bool) Valuer + func ImmutBoolp(key string, v *bool) Valuer + func ImmutByteString(key string, v []byte) Valuer + func ImmutComplex128(key string, v complex128) Valuer + func ImmutComplex128p(key string, v *complex128) Valuer + func ImmutComplex64(key string, v complex64) Valuer + func ImmutComplex64p(key string, v *complex64) Valuer + func ImmutDict(key string, val ...Field) Valuer + func ImmutDuration(key string, v time.Duration) Valuer + func ImmutDurationp(key string, v *time.Duration) Valuer + func ImmutErr(val error) Valuer + func ImmutErrors(key string, val []error) Valuer + func ImmutFloat32(key string, v float32) Valuer + func ImmutFloat32p(key string, v *float32) Valuer + func ImmutFloat64(key string, v float64) Valuer + func ImmutFloat64p(key string, v *float64) Valuer + func ImmutInline(val ObjectMarshaler) Valuer + func ImmutInt(key string, v int) Valuer + func ImmutInt16(key string, v int16) Valuer + func ImmutInt16p(key string, v *int16) Valuer + func ImmutInt32(key string, v int32) Valuer + func ImmutInt32p(key string, v *int32) Valuer + func ImmutInt64(key string, v int64) Valuer + func ImmutInt64p(key string, v *int64) Valuer + func ImmutInt8(key string, v int8) Valuer + func ImmutInt8p(key string, v *int8) Valuer + func ImmutIntp(key string, v *int) Valuer + func ImmutNamedError(key string, val error) Valuer + func ImmutNamespace(key string) Valuer + func ImmutObject(key string, val ObjectMarshaler) Valuer + func ImmutReflect(key string, v any) Valuer + func ImmutStack(key string) Valuer + func ImmutStackSkip(key string, skip int) Valuer + func ImmutString(key string, v string) Valuer + func ImmutStringer(key string, v fmt.Stringer) Valuer + func ImmutStringp(key string, v *string) Valuer + func ImmutTime(key string, v time.Time) Valuer + func ImmutTimep(key string, v *time.Time) Valuer + func ImmutUint(key string, v uint) Valuer + func ImmutUint16(key string, v uint16) Valuer + func ImmutUint16p(key string, v *uint16) Valuer + func ImmutUint32(key string, v uint32) Valuer + func ImmutUint32p(key string, v *uint32) Valuer + func ImmutUint64(key string, v uint64) Valuer + func ImmutUint64p(key string, v *uint64) Valuer + func ImmutUint8(key string, v uint8) Valuer + func ImmutUint8p(key string, v *uint8) Valuer + func ImmutUintp(key string, v *uint) Valuer + func ImmutUintptr(key string, v uintptr) Valuer + func ImmutUintptrp(key string, v *uintptr) Valuer + func Kind(v string) Valuer + func Module(v string) Valuer + func Package(v string) Valuer + func RequestId(f func(c context.Context) string) Valuer + func Source(f func(c context.Context) string) Valuer + func SpanId(f func(c context.Context) string) Valuer + func TraceId(f func(c context.Context) string) Valuer + func Type(v string) Valuer + func Unit(v string) Valuer