replace self.logger with logging.log