from typing import Dict
import logging


def map_logging_level_names_to_values() -> Dict[str, int]:
    """
    Record the name and value of log levels from the logging module
    """
    log_levels: Dict[str, int] = dict()
    for name in dir(logging):
        value = getattr(logging, name)
        if isinstance(value, int) and not isinstance(value, bool):
            log_levels[name] = value

    return log_levels