public boolean shouldPrint() {
        if (start == control) {
            return true;
        }

        if (System.currentTimeMillis() - lastLogTime > reset) {
            counter.set(0);
            this.lastLogTime = System.currentTimeMillis();
        }

        if (counter.get() > start &&
                counter.get() % control != 0) {
            return false;
        }

        return true;
    }
Determine whether it can be printed.

@return true if should print.
inlong-sort/sort-formats/format-row/format-base/src/main/java/org/apache/inlong/sort/formats/base/util/LogCounter.java