import logging


def init_log(level):
    """Initialize the logging interface"""
    format = '%(asctime)-15s %(levelname)s: %(message)s'
    logging.basicConfig(format=format)
    logger = logging.getLogger('vmi-unpack')
    logger.setLevel(level)
    return logger