@Deprecated
    public LoggingDecoratorBuilder responseCauseSanitizer(
            BiFunction<? super RequestContext, ? super Throwable,
                    ? extends @Nullable Object> responseCauseSanitizer) {
        requireNonNull(responseCauseSanitizer, "responseCauseSanitizer");
        maybeCreateLogWriterBuilder().responseCauseFilter(
                (ctx, cause) -> responseCauseSanitizer.apply(ctx, cause) != null);
        return this;
    }
Sets the {@link BiFunction} to use to sanitize a response cause before logging. You can
sanitize the stack trace of the exception to remove sensitive information, or prevent from logging
the stack trace completely by returning {@code null} in the {@link BiFunction}. If unset, will not
sanitize a response cause.

<p>Note that this method is no longer supported. You must use
{@link LogWriterBuilder#responseCauseFilter(BiPredicate)}.

@throws IllegalStateException If both the log sanitizers and the {@link LogFormatter} are specified.
@deprecated Use {@link LogWriterBuilder#responseCauseFilter(BiPredicate)} instead.
core/src/main/java/com/linecorp/armeria/common/logging/LoggingDecoratorBuilder.java