func New(level string) (*zap.Logger, error) {
	config := zap.NewProductionConfig()
	err := config.Level.UnmarshalText([]byte(level))
	if err != nil {
		return nil, errors.Wrap(err, "failed to parse log level")
	}
	config.DisableStacktrace = true
	config.Sampling = nil
	config.OutputPaths = []string{"stdout"}
	config.ErrorOutputPaths = []string{"stderr"}
	return config.Build()
}
// New creates a new zap logger with the given log level.
New creates a new zap logger with the given log level.
// New creates a new zap logger with the given log level .
func New(level string) (*zap.Logger, error) {
	config := zap.NewProductionConfig()
	err := config.Level.UnmarshalText([]byte(level))
	if err != nil {
		return nil, errors.Wrap(err, "failed to parse log level")
	}
	config.DisableStacktrace = true
	config.Sampling = nil
	config.OutputPaths = []string{"stdout"}
	config.ErrorOutputPaths = []string{"stderr"}
	return config.Build()
}
func New ( level string ) ( * zap . Logger , error ) { config := zap . NewProductionConfig ( ) err := config . Level . UnmarshalText ( [ ] byte ( level ) ) if err != nil { return nil , errors . Wrap ( err , " " ) } config . DisableStacktrace = true config . Sampling = nil config . OutputPaths = [ ] string { " " } config . ErrorOutputPaths = [ ] string { " " } return config . Build ( ) }
New creates a new zap logger with the given log level.
New creates a new zap logger with the given log level .