@Test
  public void startWithCustomLoggingConfiguration() throws Exception {
    startServer(
        new ServerCommand(this)
            .addJvmArgument(customLoggingConfigArgument())
            .disableDefaultServer(true)
            .withCommand(Command.START),
        new ToSystemOut(),
        new ToSystemOut());

    assertThat(systemOutRule.getLog())
        .contains(CONFIGURATION_FILE_PROPERTY + " = " + getCustomLoggingConfigFilePath());
    assertThat(systemOutRule.getLog())
        .contains(CONFIG_LAYOUT_PREFIX);
  }
Integration tests for launching a Server in a forked process with custom logging configuration
geode-core/src/integrationTest/java/org/apache/geode/distributed/ServerLauncherRemoteWithCustomLoggingIntegrationTest.java