public void addWatchTerm(String watchTerm) {
        if (watchTerms == null) {
            watchTerms = new ConcurrentHashMap<>();
        }
        watchTerms.put(watchTerm, new AtomicInteger(0));
    }
This logger can also look out for lines being written in the log.
stroom-util/src/main/java/stroom/util/logging/LoggerPrintStream.java