@Override
  public void close() {
    // clear the reference to GFE LogWriter
    logWriter = null;
  }
Use the log writer to use some of its formatting code.
geode-core/src/main/java/org/apache/geode/internal/logging/GemFireHandler.java