src/main/java/org/openqa/selenium/htmlunit/logging/HtmlUnitLogs.java
@Override
    public LogEntries get(String logType) {
        if (logType == LogType.BROWSER) {
            return new LogEntries(logger.getContentAndFlush());
        }

        return new LogEntries(Collections.emptyList());
    }
@Override
    public LogEntries get(String logType) {
        if (logType == LogType.BROWSER) {
            return new LogEntries(logger.getContentAndFlush());
        }

        return new LogEntries(Collections.emptyList());
    }
{@inheritDoc}