Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Zap: Add JSONEncoder and ConsoleEncoder opts
Currently, setting the encoding is pretty annoying and requires to import two more packages apart from log/zap: ``` encoderConfig := uberzap.NewProductionEncoderConfig() zap.New(zap.Encoder(zapcore.NewJSONEncoder(encoderConfig)) ``` This PR adds a JSONEncoder and ConsoleEncoder opt to simplify this
- Loading branch information