def METHOD_NAME(value):
    """Validates logging level values."""
    valid_levels = ("CRITICAL", "ERROR", "WARNING", "INFO", "DEBUG")
    if value not in valid_levels:
        raise ValueError("%s is not a value in %r" % (value, valid_levels))
    return value