Documentation ¶
Index ¶
- func AttributesFromZapField(f zap.Field) []attribute.KeyValue
- func LogSeverityFromZapLevel(level zapcore.Level) log.Severity
- type BufferArrayEncoder
- func (t *BufferArrayEncoder) AppendArray(v zapcore.ArrayMarshaler) error
- func (t *BufferArrayEncoder) AppendBool(v bool)
- func (t *BufferArrayEncoder) AppendByteString(v []byte)
- func (t *BufferArrayEncoder) AppendComplex128(v complex128)
- func (t *BufferArrayEncoder) AppendComplex64(v complex64)
- func (t *BufferArrayEncoder) AppendDuration(v time.Duration)
- func (t *BufferArrayEncoder) AppendFloat32(v float32)
- func (t *BufferArrayEncoder) AppendFloat64(v float64)
- func (t *BufferArrayEncoder) AppendInt(v int)
- func (t *BufferArrayEncoder) AppendInt16(v int16)
- func (t *BufferArrayEncoder) AppendInt32(v int32)
- func (t *BufferArrayEncoder) AppendInt64(v int64)
- func (t *BufferArrayEncoder) AppendInt8(v int8)
- func (t *BufferArrayEncoder) AppendObject(v zapcore.ObjectMarshaler) error
- func (t *BufferArrayEncoder) AppendReflected(v interface{}) error
- func (t *BufferArrayEncoder) AppendString(v string)
- func (t *BufferArrayEncoder) AppendTime(v time.Time)
- func (t *BufferArrayEncoder) AppendUint(v uint)
- func (t *BufferArrayEncoder) AppendUint16(v uint16)
- func (t *BufferArrayEncoder) AppendUint32(v uint32)
- func (t *BufferArrayEncoder) AppendUint64(v uint64)
- func (t *BufferArrayEncoder) AppendUint8(v uint8)
- func (t *BufferArrayEncoder) AppendUintptr(v uintptr)
- func (t *BufferArrayEncoder) Result() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BufferArrayEncoder ¶
type BufferArrayEncoder struct {
// contains filtered or unexported fields
}
BufferArrayEncoder implements zapcore.BufferArrayEncoder. It represents all added objects to their string values and adds them to the stringsSlice buffer.
func NewBufferArrayEncoder ¶
func NewBufferArrayEncoder() *BufferArrayEncoder
func (*BufferArrayEncoder) AppendArray ¶
func (t *BufferArrayEncoder) AppendArray(v zapcore.ArrayMarshaler) error
func (*BufferArrayEncoder) AppendBool ¶
func (t *BufferArrayEncoder) AppendBool(v bool)
func (*BufferArrayEncoder) AppendByteString ¶
func (t *BufferArrayEncoder) AppendByteString(v []byte)
func (*BufferArrayEncoder) AppendComplex128 ¶
func (t *BufferArrayEncoder) AppendComplex128(v complex128)
func (*BufferArrayEncoder) AppendComplex64 ¶
func (t *BufferArrayEncoder) AppendComplex64(v complex64)
func (*BufferArrayEncoder) AppendDuration ¶
func (t *BufferArrayEncoder) AppendDuration(v time.Duration)
func (*BufferArrayEncoder) AppendFloat32 ¶
func (t *BufferArrayEncoder) AppendFloat32(v float32)
func (*BufferArrayEncoder) AppendFloat64 ¶
func (t *BufferArrayEncoder) AppendFloat64(v float64)
func (*BufferArrayEncoder) AppendInt ¶
func (t *BufferArrayEncoder) AppendInt(v int)
func (*BufferArrayEncoder) AppendInt16 ¶
func (t *BufferArrayEncoder) AppendInt16(v int16)
func (*BufferArrayEncoder) AppendInt32 ¶
func (t *BufferArrayEncoder) AppendInt32(v int32)
func (*BufferArrayEncoder) AppendInt64 ¶
func (t *BufferArrayEncoder) AppendInt64(v int64)
func (*BufferArrayEncoder) AppendInt8 ¶
func (t *BufferArrayEncoder) AppendInt8(v int8)
func (*BufferArrayEncoder) AppendObject ¶
func (t *BufferArrayEncoder) AppendObject(v zapcore.ObjectMarshaler) error
func (*BufferArrayEncoder) AppendReflected ¶
func (t *BufferArrayEncoder) AppendReflected(v interface{}) error
func (*BufferArrayEncoder) AppendString ¶
func (t *BufferArrayEncoder) AppendString(v string)
func (*BufferArrayEncoder) AppendTime ¶
func (t *BufferArrayEncoder) AppendTime(v time.Time)
func (*BufferArrayEncoder) AppendUint ¶
func (t *BufferArrayEncoder) AppendUint(v uint)
func (*BufferArrayEncoder) AppendUint16 ¶
func (t *BufferArrayEncoder) AppendUint16(v uint16)
func (*BufferArrayEncoder) AppendUint32 ¶
func (t *BufferArrayEncoder) AppendUint32(v uint32)
func (*BufferArrayEncoder) AppendUint64 ¶
func (t *BufferArrayEncoder) AppendUint64(v uint64)
func (*BufferArrayEncoder) AppendUint8 ¶
func (t *BufferArrayEncoder) AppendUint8(v uint8)
func (*BufferArrayEncoder) AppendUintptr ¶
func (t *BufferArrayEncoder) AppendUintptr(v uintptr)
func (*BufferArrayEncoder) Result ¶
func (t *BufferArrayEncoder) Result() []string
Click to show internal directories.
Click to hide internal directories.