code: def set_log_level(self):
          
  
          if self.options.debug:
              self.logger.setLevel(logging.DEBUG)
          elif self.options.quiet:
              self.logger.setLevel(logging.ERROR)
          else:
              self.logger.setLevel(logging.INFO)
          self.logger.addHandler(logging.StreamHandler())
          return self.logger
docs: Set log level according to command-line options
  
          @returns: logger object