public boolean shouldReject(String message) {
        if (message == null)
            return false;

        for (String rejectedMessage : rejectedMessages) {
            if (message.contains(rejectedMessage)) {
                return true;
            }
        }
        return false;
    }
A RejectFilter can be queried to see if a log message should be rejected.

@author Ulf Lilleengen
@since 5.1
Should only be used internally in the log library
vespalog/src/main/java/com/yahoo/log/RejectFilter.java