@Deprecated
    public LoggingDecoratorBuilder requestHeadersSanitizer(
            BiFunction<? super RequestContext, ? super HttpHeaders,
                    ? extends @Nullable Object> requestHeadersSanitizer) {
        requireNonNull(requestHeadersSanitizer, "requestHeadersSanitizer");
        maybeCreateLogFormatterBuilder().requestHeadersSanitizer(
                convertToStringSanitizer(requestHeadersSanitizer));
        return this;
    }
Sets the {@link BiFunction} to use to sanitize request headers before logging. It is common to have the
{@link BiFunction} that removes sensitive headers, like {@code Cookie}, before logging. If unset, will
not sanitize request headers.

@throws IllegalStateException If both the log sanitizers and the {@link LogFormatter} are specified.
@deprecated Use {@link LogFormatter} to set the sanitizer.
core/src/main/java/com/linecorp/armeria/common/logging/LoggingDecoratorBuilder.java