Open dkropachev opened 6 months ago
Closes https://github.com/uber-go/zap/issues/1438 Makes it possible to override/wrap encoder:
zap.NewProductionConfig().Build(zap.WrapEncoder(func(encoding string, cfg zapcore.EncoderConfig, encoder zapcore.Encoder) (zapcore.Encoder, error) { .... }))
And sink
zap.NewProductionConfig().Build(zap.WrapSinker(func(paths []string, sink zapcore.WriteSyncer, errPath []string, errSink zapcore.WriteSyncer) (zapcore.WriteSyncer, zapcore.WriteSyncer, error) { ... }))
All committers have signed the CLA.
Closes https://github.com/uber-go/zap/issues/1438 Makes it possible to override/wrap encoder:
And sink