<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_up_logging(logger, level, should_be_quiet):
 """ Sets up logging for pepe. :param logger: The logger object to update. :param level: Logging level specified at command line. :param should_be_quiet: Boolean value for the -q option. :return: logging level ``int`` or None """

    LOGGING_LEVELS = {
        'DEBUG': logging.DEBUG,
        'INFO': logging.INFO,
        'WARNING': logging.WARNING,
        'ERROR': logging.ERROR,
        'CRITICAL': logging.CRITICAL,
        'NONE': None,
    }

    logging_level = LOGGING_LEVELS.get(level)
    if should_be_quiet or logging_level is None:
        logging_handler = NullLoggingHandler()
    else:
        logger.setLevel(logging_level)
        logging_handler = logging.StreamHandler()
        logging_handler.setLevel(logging_level)
        logging_handler.setFormatter(
            logging.Formatter(
                "%(asctime)s:%(name)s:%(levelname)s: %(message)s"
                )
            )

    logger.addHandler(logging_handler)
    return logging_level