You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to configure a few specific settings in EncoderConfig but I want to avoid having to duplicate the entire default configuration. I want to simply use zap.NewProduction() as always and just override a few specific things such as the LevelEncoder.
NewProduction seems to take some options which can presumably be used for this however I couldn't find any documentation how to use these options to achieve what I need. Can I get some advice?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'd like to configure a few specific settings in
EncoderConfig
but I want to avoid having to duplicate the entire default configuration. I want to simply usezap.NewProduction()
as always and just override a few specific things such as theLevelEncoder
.NewProduction
seems to take some options which can presumably be used for this however I couldn't find any documentation how to use these options to achieve what I need. Can I get some advice?Beta Was this translation helpful? Give feedback.
All reactions