public static LogWrapper getInstance(Cache cache) {
    if (INSTANCE == null) {
      synchronized (INSTANCE_LOCK) {
        if (INSTANCE == null) {
          INSTANCE = new LogWrapper(cache);
        }
      }
    }

    return INSTANCE;
  }
Used in the manager when logging is required to be sent back to gfsh
geode-gfsh/src/main/java/org/apache/geode/management/internal/cli/LogWrapper.java