@Override
        public void flush() {
            try {
                super.flush();
            } catch (IOException e) {
                LOGGER.error("Unable to flush stream", e);
            }
            if (parent != null) {
                parent.doFlush();
            }
        }
This logger can also look out for lines being written in the log.
stroom-util/src/main/java/stroom/util/logging/LoggerPrintStream.java