@Override
  public String toString(){
    StringBuilder sb = new StringBuilder();
    sb.append(logSegment);

    if(!indexSegments.isEmpty()) {
      sb.append(", IndexFiles=[");
      for (FileInfo storeFileInfo : indexSegments) {
        sb.append(storeFileInfo.toString());
      }
      sb.append("]");
      if(!bloomFilters.isEmpty()) {
        sb.append(", ");
      }
    }
    if(!bloomFilters.isEmpty()){
      sb.append(" BloomFilters=[");
      for(FileInfo storeFileInfo : bloomFilters){
        sb.append(storeFileInfo.toString());
      }
      sb.append("]");
    }
    sb.append("]");
    return sb.toString();
  }
Write the LogInfo object to the output stream.
@param buf The output stream.
ambry-api/src/main/java/com/github/ambry/store/StoreLogInfo.java