LoggingDecoratorBuilder { public LoggingDecoratorBuilder contentSanitizer( BiFunction<? super RequestContext, Object, ?> contentSanitizer) { requireNonNull(contentSanitizer, "contentSanitizer"); requestContentSanitizer(contentSanitizer); responseContentSanitizer(contentSanitizer); return this; }  LoggingDecoratorBuilder logger(Logger logger); LoggingDecoratorBuilder logger(String loggerName); LoggingDecoratorBuilder requestLogLevel(LogLevel requestLogLevel); LoggingDecoratorBuilder successfulResponseLogLevel(LogLevel successfulResponseLogLevel); LoggingDecoratorBuilder failureResponseLogLevel(LogLevel failedResponseLogLevel); LoggingDecoratorBuilder requestLogLevelMapper(
            Function<? super RequestOnlyLog, LogLevel> requestLogLevelMapper); LoggingDecoratorBuilder responseLogLevelMapper(
            Function<? super RequestLog, LogLevel> responseLogLevelMapper); LoggingDecoratorBuilder requestHeadersSanitizer(
            BiFunction<? super RequestContext, ? super HttpHeaders, ?> requestHeadersSanitizer); LoggingDecoratorBuilder responseHeadersSanitizer(
            BiFunction<? super RequestContext, ? super HttpHeaders, ?> responseHeadersSanitizer); LoggingDecoratorBuilder requestTrailersSanitizer(
            BiFunction<? super RequestContext, ? super HttpHeaders, ?> requestTrailersSanitizer); LoggingDecoratorBuilder responseTrailersSanitizer(
            BiFunction<? super RequestContext, ? super HttpHeaders, ?> responseTrailersSanitizer); LoggingDecoratorBuilder headersSanitizer(
            BiFunction<? super RequestContext, ? super HttpHeaders, ?> headersSanitizer); LoggingDecoratorBuilder requestContentSanitizer(
            BiFunction<? super RequestContext, Object, ?> requestContentSanitizer); LoggingDecoratorBuilder responseContentSanitizer(
            BiFunction<? super RequestContext, Object, ?> responseContentSanitizer); LoggingDecoratorBuilder contentSanitizer(
            BiFunction<? super RequestContext, Object, ?> contentSanitizer); LoggingDecoratorBuilder responseCauseSanitizer(
            BiFunction<? super RequestContext, ? super Throwable, ?> responseCauseSanitizer); @Override String toString();  }
@Test void contentSanitizer() { assertThatThrownBy(() -> builder.contentSanitizer(nullBiFunction)) .isInstanceOf(NullPointerException.class); builder.contentSanitizer(CONTENT_SANITIZER); assertThat(builder.requestContentSanitizer()).isEqualTo(CONTENT_SANITIZER); assertThat(builder.responseContentSanitizer()).isEqualTo(CONTENT_SANITIZER); }