zap icon indicating copy to clipboard operation
zap copied to clipboard

Code Generation for fast marshaling

Open jcorbin opened this issue 7 years ago • 0 comments

Wanted: a code generator for zapcore.ObjectMarshaler and (by extension) zapcore.ArrayMarshaler

For those cases where you really do want to log your domain objects, but don't want to hit the reflection path, and don't want to take on the transitive implementation burden (say to cover all of the implied IDL structure of your domain object).

For obvious reasons, we may want to support a struct field tag to exempt some fields (i.e. zap:"dontlog" or something more generic).

jcorbin avatar Jun 18 '18 17:06 jcorbin