public void dump(String infoMsg) {
    persistentMemberView.getOnlineMembers();
    persistentMemberView.getOfflineMembers();
    persistentMemberView.getOfflineAndEqualMembers();
    persistentMemberView.getMyInitializingID();
    persistentMemberView.getMyPersistentID();
    final StringBuilder buf = new StringBuilder(2000);
    if (infoMsg != null) {
      buf.append(infoMsg);
      buf.append(": ");
    }
    buf.append(lineSeparator()).append("MY PERSISTENT ID:").append(lineSeparator());
    buf.append(persistentMemberView.getMyPersistentID());
    buf.append(lineSeparator()).append("MY INITIALIZING ID:").append(lineSeparator());
    buf.append(persistentMemberView.getMyInitializingID());

    buf.append(lineSeparator()).append("ONLINE MEMBERS:").append(lineSeparator());
    for (PersistentMemberID id : persistentMemberView.getOnlineMembers()) {
      buf.append("\t");
      buf.append(id);
      buf.append(lineSeparator());
    }

    buf.append(lineSeparator()).append("OFFLINE MEMBERS:").append(lineSeparator());
    for (PersistentMemberID id : persistentMemberView.getOfflineMembers()) {
      buf.append("\t");
      buf.append(id);
      buf.append(lineSeparator());
    }

    buf.append(lineSeparator()).append("OFFLINE AND EQUAL MEMBERS:").append(lineSeparator());
    for (PersistentMemberID id : persistentMemberView.getOfflineAndEqualMembers()) {
      buf.append("\t");
      buf.append(id);
      buf.append(lineSeparator());
    }
    logger.debug(buf.toString());
  }
Callers should have already verified that debug output is enabled.
geode-core/src/main/java/org/apache/geode/internal/cache/BucketPersistenceAdvisor.java