@Override
        public boolean equals(Object o) {
            if (this == o) return true;
            if (!(o instanceof LogEntry)) return false;

            LogEntry logEntry = (LogEntry) o;

            if (!level.equals(logEntry.level)) return false;
            if (!message.equals(logEntry.message)) return false;

            return true;
        }
A logger stub that stores the log output to a list.

@author bjorncs
config-model/src/test/java/com/yahoo/vespa/model/test/utils/DeployLoggerStub.java