private PrintWriter createFileOutputStream(final File logFile) {
    try {
      return new PrintWriter(new FileOutputStream(logFile, true), true);
    } catch (FileNotFoundException ex) {
      String s = String.format("Could not open log file \"%s\".", logFile);
      throw new GemFireIOException(s, ex);
    }
  }
Sets the target that this logger will sends its output to.

@return the previous target.
geode-core/src/main/java/org/apache/geode/internal/logging/PureLogWriter.java