// WithLogger sets logger to server.
WithLogger sets logger to server.
// WithLogger sets logger to server .
func WithLogger(logger *zap.Logger) Option {
	return func(s *Server) {
		s.logger = logger.Named("rpc-server")
	}
}
func WithLogger ( logger * zap . Logger ) Option { return func ( s * Server ) { s . logger = logger . Named ( " " ) } }
WithLogger sets logger to server.
WithLogger sets logger to server .