Skip to content

Commit

Permalink
feat: remove public member for new encoder
Browse files Browse the repository at this point in the history
  • Loading branch information
devanbenz committed Jan 13, 2025
1 parent 41d03da commit 474421c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (c *Config) New(defaultOutput io.Writer) (*zap.Logger, error) {
}
}

encoder, err := NewEncoder(format)
encoder, err := newEncoder(format)
if err != nil {
return nil, err
}
Expand All @@ -51,7 +51,7 @@ func (c *Config) New(defaultOutput io.Writer) (*zap.Logger, error) {
), zap.Fields(zap.String("log_id", nextID()))), nil
}

func NewEncoder(format string) (zapcore.Encoder, error) {
func newEncoder(format string) (zapcore.Encoder, error) {
config := newEncoderConfig()
switch format {
case "json":
Expand Down

0 comments on commit 474421c

Please sign in to comment.