LoggingService extends SimpleDecoratingHttpService { public static LoggingServiceBuilder builder() { return new LoggingServiceBuilder(); } LoggingService(
            HttpService delegate,
            @Nullable Logger logger,
            Function<? super RequestOnlyLog, LogLevel> requestLogLevelMapper,
            Function<? super RequestLog, LogLevel> responseLogLevelMapper,
            BiFunction<? super RequestContext, ? super RequestHeaders, ?> requestHeadersSanitizer,
            BiFunction<? super RequestContext, Object, ?> requestContentSanitizer,
            BiFunction<? super RequestContext, ? super HttpHeaders, ?> requestTrailersSanitizer,
            BiFunction<? super RequestContext, ? super ResponseHeaders, ?> responseHeadersSanitizer,
            BiFunction<? super RequestContext, Object, ?> responseContentSanitizer,
            BiFunction<? super RequestContext, ? super HttpHeaders, ?> responseTrailersSanitizer,
            BiFunction<? super RequestContext, ? super Throwable, ?> responseCauseSanitizer,
            Sampler<? super ServiceRequestContext> sampler); static Function<? super HttpService, LoggingService> newDecorator(); static LoggingServiceBuilder builder(); @Override HttpResponse serve(ServiceRequestContext ctx, HttpRequest req);  }
@Test void duplicateSetRequestLogLevelAndMapper() throws Exception { assertThatThrownBy(() -> LoggingService.builder() .requestLogLevel(LogLevel.INFO) .requestLogLevelMapper(log -> LogLevel.INFO)) .isInstanceOf(IllegalStateException.class); }
@Test void reversedDuplicateSetRequestLogLevelAndMapper() throws Exception { assertThatThrownBy(() -> LoggingService.builder() .requestLogLevelMapper(log -> LogLevel.INFO) .requestLogLevel(LogLevel.INFO)) .isInstanceOf(IllegalStateException.class); }
@Test void duplicateSetSuccessfulResponseLogLevelAndMapper() throws Exception { assertThatThrownBy(() -> LoggingService.builder() .successfulResponseLogLevel(LogLevel.INFO) .responseLogLevelMapper(log -> LogLevel.INFO)) .isInstanceOf(IllegalStateException.class); }
@Test void reversedDuplicateSetSuccessfulResponseLogLevelAndMapper() throws Exception { assertThatThrownBy(() -> LoggingService.builder() .responseLogLevelMapper(log -> LogLevel.INFO) .successfulResponseLogLevel(LogLevel.INFO)) .isInstanceOf(IllegalStateException.class); }
@Test void duplicateSetFailureResponseLogLevelAndMapper() throws Exception { assertThatThrownBy(() -> LoggingService.builder() .failureResponseLogLevel(LogLevel.INFO) .responseLogLevelMapper(log -> LogLevel.INFO)) .isInstanceOf(IllegalStateException.class); }
@Test void reversedDuplicateSetFailureResponseLogLevelAndMapper() throws Exception { assertThatThrownBy(() -> LoggingService.builder() .responseLogLevelMapper(log -> LogLevel.INFO) .failureResponseLogLevel(LogLevel.INFO)) .isInstanceOf(IllegalStateException.class); }