def set_logger(self, logger):
        """Set a logger other than the standard one.

        This is meant to be used from Celery tasks, which usually
        would want to use their task logger for logging.
        """
        self.logger = logger