<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def connect(self, **kwargs):
 """ Connect to the Redis Server :param kwargs: Parameters passed directly to redis library :return: Boolean indicating if connection successful :kwarg host: Hostname of the Redis server :kwarg port: Port of the Redis server :kwarg password: Auth key for the Redis server """


        self.__db = redis.Redis(**kwargs)
        try:
            self.__db.info()
            self.connected = True
        except redis.ConnectionError as e:
            self.logger.error("Failed to connect to Redis server: ", e)
            raise QueueNotConnectedError(e)

        return True