import logging


def config_logger(name, level=10):
    """ Config logger output with level 'level'.

    Args:
        name (str): name of the logger.
        level (int): level of severity displayed.

    Returns:
        object: configured logger.
    """
    logging.basicConfig(level = level, format = '%(asctime)s - %(name)s - %(levelname)s - %(message)s')
    global logger
    logger = logging.getLogger(name)
    return logger