private String enforceErrorLimit(int hits, String line, int linenum, String filename) {
    if (hits < skipLimit) {
      String string = "-----------------------------------------------------------------------"
          + lineSeparator()
          + "Found suspect string in '" + filename + "' at line " + linenum
          + lineSeparator() + lineSeparator()
          + line + lineSeparator();
      return string;
    }

    if (hits == skipLimit) {
      String string = lineSeparator() + lineSeparator()
          + "Hit occurrence limit of " + hits + " for this string."
          + lineSeparator()
          + "Further reporting of this type of error will be suppressed."
          + lineSeparator();
      return string;
    }
    return null;
  }
This method returns true if this line should be skipped.
geode-dunit/src/main/java/org/apache/geode/test/greplogs/LogConsumer.java