docs: def configure_logging(verbose, logger):
      """Configures the logging used."""
      if not verbose:
          log_level = logging.WARNING
      elif verbose == 1:
          log_level = logging.INFO
      else:
          log_level = logging.DEBUG
      logger.setLevel(log_level)
      ch = colorlog.StreamHandler()
      ch.setLevel(log_level)
      formatter = colorlog.ColoredFormatter(
          '%(log_color)s%(asctime)s %(name)s %(levelname)s: %(message)s')
      ch.setFormatter(formatter)
      logger.addHandler(ch)