Documentation ¶
Index ¶
- Variables
- func NewHumanEncoder(cfg zapcore.EncoderConfig) (zapcore.Encoder, error)
- type HumanEncoder
- func (h *HumanEncoder) AddArray(key string, marshaler zapcore.ArrayMarshaler) error
- func (h *HumanEncoder) AddBinary(key string, value []byte)
- func (h *HumanEncoder) AddBool(key string, value bool)
- func (h *HumanEncoder) AddByteString(key string, value []byte)
- func (h *HumanEncoder) AddComplex128(key string, value complex128)
- func (h *HumanEncoder) AddComplex64(key string, value complex64)
- func (h *HumanEncoder) AddDuration(key string, value time.Duration)
- func (h *HumanEncoder) AddFloat32(key string, value float32)
- func (h *HumanEncoder) AddFloat64(key string, value float64)
- func (h *HumanEncoder) AddInt(key string, value int)
- func (h *HumanEncoder) AddInt16(key string, value int16)
- func (h *HumanEncoder) AddInt32(key string, value int32)
- func (h *HumanEncoder) AddInt64(key string, value int64)
- func (h *HumanEncoder) AddInt8(key string, value int8)
- func (h *HumanEncoder) AddObject(key string, marshaler zapcore.ObjectMarshaler) error
- func (h *HumanEncoder) AddReflected(key string, value interface{}) error
- func (h *HumanEncoder) AddString(key, value string)
- func (h *HumanEncoder) AddTime(key string, value time.Time)
- func (h *HumanEncoder) AddUint(key string, value uint)
- func (h *HumanEncoder) AddUint16(key string, value uint16)
- func (h *HumanEncoder) AddUint32(key string, value uint32)
- func (h *HumanEncoder) AddUint64(key string, value uint64)
- func (h *HumanEncoder) AddUint8(key string, value uint8)
- func (h *HumanEncoder) AddUintptr(key string, value uintptr)
- func (h *HumanEncoder) AppendArray(marshaler zapcore.ArrayMarshaler) error
- func (h *HumanEncoder) AppendBool(b bool)
- func (h *HumanEncoder) AppendByteString(bytes []byte)
- func (h *HumanEncoder) AppendComplex128(c complex128)
- func (h *HumanEncoder) AppendComplex64(c complex64)
- func (h *HumanEncoder) AppendDuration(duration time.Duration)
- func (h *HumanEncoder) AppendFloat32(f float32)
- func (h *HumanEncoder) AppendFloat64(f float64)
- func (h *HumanEncoder) AppendInt(i int)
- func (h *HumanEncoder) AppendInt16(i int16)
- func (h *HumanEncoder) AppendInt32(i int32)
- func (h *HumanEncoder) AppendInt64(i int64)
- func (h *HumanEncoder) AppendInt8(i int8)
- func (h *HumanEncoder) AppendObject(marshaler zapcore.ObjectMarshaler) error
- func (h *HumanEncoder) AppendReflected(value interface{}) error
- func (h *HumanEncoder) AppendString(s string)
- func (h *HumanEncoder) AppendTime(t time.Time)
- func (h *HumanEncoder) AppendUint(u uint)
- func (h *HumanEncoder) AppendUint16(u uint16)
- func (h *HumanEncoder) AppendUint32(u uint32)
- func (h *HumanEncoder) AppendUint64(u uint64)
- func (h *HumanEncoder) AppendUint8(u uint8)
- func (h *HumanEncoder) AppendUintptr(u uintptr)
- func (h *HumanEncoder) Clone() zapcore.Encoder
- func (h *HumanEncoder) EncodeEntry(ent zapcore.Entry, fields []zapcore.Field) (*buffer.Buffer, error)
- func (h *HumanEncoder) OpenNamespace(key string)
- type Pool
Constants ¶
This section is empty.
Variables ¶
View Source
var (
GetBufferPool = _pool.Get
)
Functions ¶
func NewHumanEncoder ¶
func NewHumanEncoder(cfg zapcore.EncoderConfig) (zapcore.Encoder, error)
Types ¶
type HumanEncoder ¶
type HumanEncoder struct { *zapcore.EncoderConfig // contains filtered or unexported fields }
func (*HumanEncoder) AddArray ¶
func (h *HumanEncoder) AddArray(key string, marshaler zapcore.ArrayMarshaler) error
func (*HumanEncoder) AddBinary ¶
func (h *HumanEncoder) AddBinary(key string, value []byte)
func (*HumanEncoder) AddBool ¶
func (h *HumanEncoder) AddBool(key string, value bool)
func (*HumanEncoder) AddByteString ¶
func (h *HumanEncoder) AddByteString(key string, value []byte)
func (*HumanEncoder) AddComplex128 ¶
func (h *HumanEncoder) AddComplex128(key string, value complex128)
func (*HumanEncoder) AddComplex64 ¶
func (h *HumanEncoder) AddComplex64(key string, value complex64)
func (*HumanEncoder) AddDuration ¶
func (h *HumanEncoder) AddDuration(key string, value time.Duration)
func (*HumanEncoder) AddFloat32 ¶
func (h *HumanEncoder) AddFloat32(key string, value float32)
func (*HumanEncoder) AddFloat64 ¶
func (h *HumanEncoder) AddFloat64(key string, value float64)
func (*HumanEncoder) AddInt ¶
func (h *HumanEncoder) AddInt(key string, value int)
func (*HumanEncoder) AddInt16 ¶
func (h *HumanEncoder) AddInt16(key string, value int16)
func (*HumanEncoder) AddInt32 ¶
func (h *HumanEncoder) AddInt32(key string, value int32)
func (*HumanEncoder) AddInt64 ¶
func (h *HumanEncoder) AddInt64(key string, value int64)
func (*HumanEncoder) AddInt8 ¶
func (h *HumanEncoder) AddInt8(key string, value int8)
func (*HumanEncoder) AddObject ¶
func (h *HumanEncoder) AddObject(key string, marshaler zapcore.ObjectMarshaler) error
func (*HumanEncoder) AddReflected ¶
func (h *HumanEncoder) AddReflected(key string, value interface{}) error
func (*HumanEncoder) AddString ¶
func (h *HumanEncoder) AddString(key, value string)
func (*HumanEncoder) AddUint ¶
func (h *HumanEncoder) AddUint(key string, value uint)
func (*HumanEncoder) AddUint16 ¶
func (h *HumanEncoder) AddUint16(key string, value uint16)
func (*HumanEncoder) AddUint32 ¶
func (h *HumanEncoder) AddUint32(key string, value uint32)
func (*HumanEncoder) AddUint64 ¶
func (h *HumanEncoder) AddUint64(key string, value uint64)
func (*HumanEncoder) AddUint8 ¶
func (h *HumanEncoder) AddUint8(key string, value uint8)
func (*HumanEncoder) AddUintptr ¶
func (h *HumanEncoder) AddUintptr(key string, value uintptr)
func (*HumanEncoder) AppendArray ¶
func (h *HumanEncoder) AppendArray(marshaler zapcore.ArrayMarshaler) error
func (*HumanEncoder) AppendBool ¶
func (h *HumanEncoder) AppendBool(b bool)
func (*HumanEncoder) AppendByteString ¶
func (h *HumanEncoder) AppendByteString(bytes []byte)
func (*HumanEncoder) AppendComplex128 ¶
func (h *HumanEncoder) AppendComplex128(c complex128)
func (*HumanEncoder) AppendComplex64 ¶
func (h *HumanEncoder) AppendComplex64(c complex64)
func (*HumanEncoder) AppendDuration ¶
func (h *HumanEncoder) AppendDuration(duration time.Duration)
func (*HumanEncoder) AppendFloat32 ¶
func (h *HumanEncoder) AppendFloat32(f float32)
func (*HumanEncoder) AppendFloat64 ¶
func (h *HumanEncoder) AppendFloat64(f float64)
func (*HumanEncoder) AppendInt ¶
func (h *HumanEncoder) AppendInt(i int)
func (*HumanEncoder) AppendInt16 ¶
func (h *HumanEncoder) AppendInt16(i int16)
func (*HumanEncoder) AppendInt32 ¶
func (h *HumanEncoder) AppendInt32(i int32)
func (*HumanEncoder) AppendInt64 ¶
func (h *HumanEncoder) AppendInt64(i int64)
func (*HumanEncoder) AppendInt8 ¶
func (h *HumanEncoder) AppendInt8(i int8)
func (*HumanEncoder) AppendObject ¶
func (h *HumanEncoder) AppendObject(marshaler zapcore.ObjectMarshaler) error
func (*HumanEncoder) AppendReflected ¶
func (h *HumanEncoder) AppendReflected(value interface{}) error
func (*HumanEncoder) AppendString ¶
func (h *HumanEncoder) AppendString(s string)
func (*HumanEncoder) AppendTime ¶
func (h *HumanEncoder) AppendTime(t time.Time)
func (*HumanEncoder) AppendUint ¶
func (h *HumanEncoder) AppendUint(u uint)
func (*HumanEncoder) AppendUint16 ¶
func (h *HumanEncoder) AppendUint16(u uint16)
func (*HumanEncoder) AppendUint32 ¶
func (h *HumanEncoder) AppendUint32(u uint32)
func (*HumanEncoder) AppendUint64 ¶
func (h *HumanEncoder) AppendUint64(u uint64)
func (*HumanEncoder) AppendUint8 ¶
func (h *HumanEncoder) AppendUint8(u uint8)
func (*HumanEncoder) AppendUintptr ¶
func (h *HumanEncoder) AppendUintptr(u uintptr)
func (*HumanEncoder) Clone ¶
func (h *HumanEncoder) Clone() zapcore.Encoder
func (*HumanEncoder) EncodeEntry ¶
func (*HumanEncoder) OpenNamespace ¶
func (h *HumanEncoder) OpenNamespace(key string)
Click to show internal directories.
Click to hide internal directories.