@Test
    void setAccessLoggerTest1() {
        final Server sb = Server.builder()
                                .http(8080)  // Used for virtual host mapping
                                .service("/", (ctx, req) -> HttpResponse.of(HttpStatus.OK))
                                .accessLogger(LoggerFactory.getLogger("default"))
                                .virtualHost("*.example.com")
                                .and()
                                .virtualHost("*.example2.com")
                                .accessLogger("com.ex2")
                                .and()
                                .virtualHost("*.example3.com")
                                .accessLogger(host -> LoggerFactory.getLogger("com.ex3"))
                                .and()
                                .virtualHost("def.example4.com", "*.example4.com")
                                .and()
                                .virtualHost("def.example5.com", "*.example5.com")
                                .accessLogger("com.ex5")
                                .and()
                                .virtualHost("port.example5.com", "*.example5.com:8080")
                                .accessLogger("port.ex5")
                                .and()
                                .build();
        assertThat(sb.config().defaultVirtualHost()).isNotNull();
        assertThat(sb.config().defaultVirtualHost().accessLogger().getName()).isEqualTo("default");

        assertThat(sb.config().findVirtualHost("*.example.com", -1).accessLogger().getName())
                .isEqualTo("default");

        assertThat(sb.config().findVirtualHost("*.example2.com", -1).accessLogger().getName())
                .isEqualTo("com.ex2");

        assertThat(sb.config().findVirtualHost("*.example3.com", -1).accessLogger().getName())
                .isEqualTo("com.ex3");

        assertThat(sb.config().findVirtualHost("*.example4.com", -1).accessLogger().getName())
                .isEqualTo("default");

        assertThat(sb.config().findVirtualHost("*.example5.com", -1).accessLogger().getName())
                .isEqualTo("com.ex5");

        assertThat(sb.config().findVirtualHost("*.example5.com", 8080).accessLogger().getName())
                .isEqualTo("port.ex5");
    }
Makes sure each virtual host can have its custom logger name.
core/src/test/java/com/linecorp/armeria/server/ServerBuilderTest.java