public void closingLogFile() {
    OutputStream nullOutputStream = new OutputStream() {
      @Override
      public void write(int b) throws IOException {
        // --> /dev/null
      }
    };
    close();
    if (mainLogWriter != null) {
      mainLogWriter.close();
    }
    PrintWriter printWriter = setTarget(new PrintWriter(nullOutputStream, true));
    if (printWriter != null) {
      printWriter.close();
    }
  }
notification from manager that the output file is being closed
geode-core/src/main/java/org/apache/geode/internal/logging/ManagerLogWriter.java