MCPcopy
hub / github.com/uber-go/zap / AddObject

Method AddObject

zapcore/encoder.go:367–367  ·  zapcore/encoder.go::ObjectEncoder.AddObject
(key string, marshaler ObjectMarshaler)

Source from the content-addressed store, hash-verified

365 // Logging-specific marshalers.
366 AddArray(key string, marshaler ArrayMarshaler) error
367 AddObject(key string, marshaler ObjectMarshaler) error
368
369 // Built-in types.
370 AddBinary(key string, value []byte) // for arbitrary bytes

Callers 5

MarshalLogObjectMethod · 0.65
TestMapObjectEncoderAddFunction · 0.65
AddToMethod · 0.65

Implementers 2

jsonEncoderzapcore/json_encoder.go
MapObjectEncoderzapcore/memory_encoder.go

Calls

no outgoing calls

Tested by 4

MarshalLogObjectMethod · 0.52
TestMapObjectEncoderAddFunction · 0.52