import logging


def __get_logging_level(logging_level):
    """Returns the logging level that corresponds to the parameter string."""
    if isinstance(logging_level, str):
        return getattr(logging, logging_level.upper())
    else:
        return logging_level