import logging


def validate_log_level(level: str) -> bool:
    """Test whether a log level is valid.

    Arguments:
        level {str} -- The log level to test.

    Returns:
        bool -- True if the log level is valid.
    """
    return hasattr(logging, level)