@Override
        public void publish(LogRecord record) {
            synchronized (errorCounter) {
                Integer count = errorCounter.get(record.getLevel());
                if (count == null) {
                    count = Integer.valueOf(0);
                }
                errorCounter.put(record.getLevel(),
                        Integer.valueOf(count.intValue() + 1));
            }
        }
Check error logging from ContentChannelOutputStream is sane.

@author Steinar Knutsen
container-core/src/test/java/com/yahoo/container/jdisc/LoggingTestCase.java