Documentation ¶
Index ¶
- Constants
- Variables
- type AtrEncoder
- func (a *AtrEncoder) AddArray(key string, arr zapcore.ArrayMarshaler) error
- func (a *AtrEncoder) AddBinary(key string, value []byte)
- func (a *AtrEncoder) AddBool(key string, value bool)
- func (a *AtrEncoder) AddByteString(key string, value []byte)
- func (a *AtrEncoder) AddComplex128(key string, value complex128)
- func (a *AtrEncoder) AddComplex64(key string, value complex64)
- func (a *AtrEncoder) AddDuration(key string, value time.Duration)
- func (a *AtrEncoder) AddFloat32(key string, value float32)
- func (a *AtrEncoder) AddFloat64(key string, value float64)
- func (a *AtrEncoder) AddInt(key string, value int)
- func (a *AtrEncoder) AddInt16(key string, value int16)
- func (a *AtrEncoder) AddInt32(key string, value int32)
- func (a *AtrEncoder) AddInt64(key string, value int64)
- func (a *AtrEncoder) AddInt8(key string, value int8)
- func (a *AtrEncoder) AddObject(key string, obj zapcore.ObjectMarshaler) error
- func (a *AtrEncoder) AddReflected(key string, value interface{}) error
- func (a *AtrEncoder) AddString(key, value string)
- func (a *AtrEncoder) AddTime(key string, value time.Time)
- func (a *AtrEncoder) AddUint(key string, value uint)
- func (a *AtrEncoder) AddUint16(key string, value uint16)
- func (a *AtrEncoder) AddUint32(key string, value uint32)
- func (a *AtrEncoder) AddUint64(key string, value uint64)
- func (a *AtrEncoder) AddUint8(key string, value uint8)
- func (a *AtrEncoder) AddUintptr(key string, value uintptr)
- func (a *AtrEncoder) Clone() *AtrEncoder
- func (a *AtrEncoder) EncodeEntry(ent zapcore.Entry, fields []zapcore.Field) ([]attribute.KeyValue, error)
- func (a *AtrEncoder) OpenNamespace(key string)
Constants ¶
View Source
const ( CallerKey = "_caller" StacktraceKey = "stack" MsgKey = "msg" )
Variables ¶
View Source
var (
// Get retrieves a buffer from the pool, creating one if necessary.
Get = _pool.Get
)
Functions ¶
This section is empty.
Types ¶
type AtrEncoder ¶
type AtrEncoder struct {
// contains filtered or unexported fields
}
func NewAttr ¶
func NewAttr(attr ...attribute.KeyValue) *AtrEncoder
func (*AtrEncoder) AddArray ¶
func (a *AtrEncoder) AddArray(key string, arr zapcore.ArrayMarshaler) error
func (*AtrEncoder) AddBinary ¶
func (a *AtrEncoder) AddBinary(key string, value []byte)
func (*AtrEncoder) AddBool ¶
func (a *AtrEncoder) AddBool(key string, value bool)
func (*AtrEncoder) AddByteString ¶
func (a *AtrEncoder) AddByteString(key string, value []byte)
func (*AtrEncoder) AddComplex128 ¶
func (a *AtrEncoder) AddComplex128(key string, value complex128)
func (*AtrEncoder) AddComplex64 ¶
func (a *AtrEncoder) AddComplex64(key string, value complex64)
func (*AtrEncoder) AddDuration ¶
func (a *AtrEncoder) AddDuration(key string, value time.Duration)
func (*AtrEncoder) AddFloat32 ¶
func (a *AtrEncoder) AddFloat32(key string, value float32)
func (*AtrEncoder) AddFloat64 ¶
func (a *AtrEncoder) AddFloat64(key string, value float64)
func (*AtrEncoder) AddInt ¶
func (a *AtrEncoder) AddInt(key string, value int)
func (*AtrEncoder) AddInt16 ¶
func (a *AtrEncoder) AddInt16(key string, value int16)
func (*AtrEncoder) AddInt32 ¶
func (a *AtrEncoder) AddInt32(key string, value int32)
func (*AtrEncoder) AddInt64 ¶
func (a *AtrEncoder) AddInt64(key string, value int64)
func (*AtrEncoder) AddInt8 ¶
func (a *AtrEncoder) AddInt8(key string, value int8)
func (*AtrEncoder) AddObject ¶
func (a *AtrEncoder) AddObject(key string, obj zapcore.ObjectMarshaler) error
func (*AtrEncoder) AddReflected ¶
func (a *AtrEncoder) AddReflected(key string, value interface{}) error
func (*AtrEncoder) AddString ¶
func (a *AtrEncoder) AddString(key, value string)
AddString has multi-line issue
func (*AtrEncoder) AddUint ¶
func (a *AtrEncoder) AddUint(key string, value uint)
func (*AtrEncoder) AddUint16 ¶
func (a *AtrEncoder) AddUint16(key string, value uint16)
func (*AtrEncoder) AddUint32 ¶
func (a *AtrEncoder) AddUint32(key string, value uint32)
func (*AtrEncoder) AddUint64 ¶
func (a *AtrEncoder) AddUint64(key string, value uint64)
func (*AtrEncoder) AddUint8 ¶
func (a *AtrEncoder) AddUint8(key string, value uint8)
func (*AtrEncoder) AddUintptr ¶
func (a *AtrEncoder) AddUintptr(key string, value uintptr)
func (*AtrEncoder) Clone ¶
func (a *AtrEncoder) Clone() *AtrEncoder
func (*AtrEncoder) EncodeEntry ¶
func (*AtrEncoder) OpenNamespace ¶
func (a *AtrEncoder) OpenNamespace(key string)
OpenNamespace not used, for json flow only
Click to show internal directories.
Click to hide internal directories.