示例#1
0
 def set_logger(self, logger):
     CheckValue.check_logger(logger, 'logger')
     self._logger = logger
     self._logutils = LogUtils(logger)
     self._request_utils = borneo.http.RequestUtils(self._sess,
                                                    self._logutils)
     return self
示例#2
0
    def set_logger(self, logger):
        """
        Sets a logger instance for this provider. If not set, the logger
        associated with the driver is used.

        :param logger: the logger.
        :returns: self.
        :raises IllegalArgumentException: raises the exception if logger is not
            an instance of Logger.
        """
        CheckValue.check_logger(logger, 'logger')
        self.__logger = logger
        self.__logutils = LogUtils(logger)
        self.__request_utils = RequestUtils(self.__sess, self.__logutils)
        return self
示例#3
0
 def set_logger(self, logger):
     CheckValue.check_logger(logger, 'logger')
     self._logger = logger
     self._logutils = LogUtils(logger)
     return self