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

Interface ObjectMarshaler

zapcore/marshaler.go:30–32  ·  zapcore/marshaler.go::ObjectMarshaler

ObjectMarshaler allows user-defined types to efficiently add themselves to the logging context, and to selectively omit information which shouldn't be included in logs (e.g., passwords). Note: ObjectMarshaler is only used when zap.Object is used or when passed directly to zap.Any. It is not used wh

Source from the content-addressed store, hash-verified

28// passed directly to zap.Any. It is not used when reflection-based
29// encoding is used.
30type ObjectMarshaler interface {
31 MarshalLogObject(ObjectEncoder) error
32}
33
34// ObjectMarshalerFunc is a type adapter that turns a function into an
35// ObjectMarshaler.

Callers 4

AppendObjectMethod · 0.65
AddObjectMethod · 0.65
AppendObjectMethod · 0.65
AddToMethod · 0.65

Implementers 12

userlogger_bench_test.go
invalidPairsugar.go
emptyObjectarray_test.go
fakeObjectarray_test.go
addrexample_test.go
requestexample_test.go
errArrayElemerror.go
turduckenzapcore/json_encoder_impl_test.go
loggablezapcore/json_encoder_impl_test.go
maybeNamespacezapcore/json_encoder_impl_test.go
errArrayElemzapcore/error.go
userbenchmarks/zap_test.go

Calls

no outgoing calls

Tested by

no test coverage detected