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
| 28 | // passed directly to zap.Any. It is not used when reflection-based |
| 29 | // encoding is used. |
| 30 | type ObjectMarshaler interface { |
| 31 | MarshalLogObject(ObjectEncoder) error |
| 32 | } |
| 33 | |
| 34 | // ObjectMarshalerFunc is a type adapter that turns a function into an |
| 35 | // ObjectMarshaler. |
no outgoing calls
no test coverage detected