def print_stream(file, name):
    """Print stream from file to logger."""
    logger = logging.getLogger('xenon.{}'.format(name))
    for line in file:
        logger.info('[{}] {}'.format(name, line.strip()))