def logger(self, value):
        """
        Set logger instance for the class
        """
        if isinstance(value, logging.Logger):
            self._logger = value
        else:
            if self._logger: # pragma: no cover
                self._logger.error("logger requires a logging instance")
            raise ValueError('logger requires a logging instance')
Set logger instance for the class