class EvictingConnectionLogger implements ConnectionLogger {

    @Override
    public Collection<LogEntry> getLogs() {
        final Collection<LogEntry> logs = new ArrayList<>(successLogs.size() + failureLogs.size());
        logs.addAll(successLogs);
        logs.addAll(failureLogs);

        LOGGER.trace("Returning logs: {}", logs);
        return logs;
    }

    private  EvictingConnectionLogger(final Builder builder);

}