package io.tromba.testdriver.core.logging;

import java.util.ArrayList;
import java.util.List;

/**
 * Logger for testdriver tests.
 */
public class TestdriverLogger {

    private List<LogEntry> entries = new ArrayList<LogEntry>();

    public void log(LogLevel logLevel, String message) {
        LogEntry entry = new LogEntry(logLevel);
        entry.setMessage(message);
    }
}

package io.tromba.testdriver.core.logging;

import java.util.ArrayList;
import java.util.List;

/**
 * Logger for testdriver tests.
 */
public class TestdriverLogger {

    private List<LogEntry> entries = new ArrayList<LogEntry>();

    public void log(LogLevel logLevel, String message) {
        LogEntry entry = new LogEntry(logLevel);
        entry.setMessage(message);
        entries.add(entry);
    }

    public void finalise() {
        for (LogEntry entry: entries) {
            System.out.println(entry.getMessage());
        }
    }
}

add basic finalise method