private void createServer(String serverName, File serverDir, int locatorPort) {
    serverLauncher = new ServerLauncher.Builder().setMemberName(serverName)
        .setWorkingDirectory(serverDir.getAbsolutePath())
        .setDisableDefaultServer(true)
        .set(LOCATORS, "localHost[" + locatorPort + "]")
        .set(DISABLE_AUTO_RECONNECT, "false")
        .set(ENABLE_CLUSTER_CONFIGURATION, "false")
        .set(MAX_WAIT_TIME_RECONNECT, "1000")
        .set(MEMBER_TIMEOUT, "2000")
        .build();

    serverLauncher.start();

    system = (InternalDistributedSystem) serverLauncher.getCache().getDistributedSystem();
  }
Distributed tests for logging during reconnect.
geode-core/src/distributedTest/java/org/apache/geode/logging/internal/LoggingWithReconnectDistributedTest.java