public static boolean mergeLogFiles(final Map<String, InputStream> logFiles,
      final PrintWriter mergedFile) {
    Map<String, DisplayNameAndFileStream> newMap = new HashMap<>();
    for (Map.Entry<String, InputStream> entry : logFiles.entrySet()) {
      newMap.put(entry.getKey(), new DisplayNameAndFileStream(entry.getKey(), entry.getValue()));
    }
    return mergeLogFiles(newMap, mergedFile, false, false, false, new LinkedList<>());
  }
Merges the log files from a given set of {@code InputStream}s into a
{@code PrintWriter}.

@param logFiles The log files to be merged
@param mergedFile Where the merged logs are printed to

@return Whether or not problems occurred while merging the log files.

@throws IllegalArgumentException If the length of {@code logFiles} is not the same as the
        length of {@code logFileNames}
geode-core/src/main/java/org/apache/geode/internal/logging/MergeLogFiles.java