code: def set_logger(self, log_level=logging.INFO):
          
          logging.basicConfig(
              format='%(asctime)s - %(levelname)s - %(name)s - %(message)s',
              level=log_level,
              stream=sys.stderr)
          self.logger = logging.getLogger(__name__)
          logging.getLogger('requests').setLevel(logging.WARNING)
docs: Configure the logger with log_level.