import logging


def get_logger(envirnment):
    """
    Create a logger using the logging info from the calling environment, configure
    that logger and return it for use by the code.
    """
    level = envirnment.get('logging-level', 'INFO')
    logging.basicConfig(format="%(name)s - %(module)s - %(message)s",level=level)
    logger = logging.getLogger()
    logger.setLevel(level)
    return logger