public void close() {
    closed = true;
    try {
      if (printWriter != null) {
        printWriter.close();
      }
    } catch (Exception e) {
      // ignore , we are closing.
    }
  }
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