public SELF headersSanitizer(
            BiFunction<? super RequestContext, ? super HttpHeaders, ? extends @Nullable T> headersSanitizer) {
        requireNonNull(headersSanitizer, "headersSanitizer");
        requestHeadersSanitizer(headersSanitizer);
        requestTrailersSanitizer(headersSanitizer);
        responseHeadersSanitizer(headersSanitizer);
        responseTrailersSanitizer(headersSanitizer);
        return self();
    }
Sets the {@link BiFunction} to use to sanitize request, response and trailers before logging.
It is common to have the {@link BiFunction} that removes sensitive headers, like {@code "Cookie"} and
{@code "Set-Cookie"}, before logging. This method is a shortcut for:
<pre>{@code
HeadersSanitizer<String> headersSanitizer =
  HeadersSanitizer
    .builderForText()
    .sensitiveHeaders("...")
    ...
    .build();

builder.requestHeadersSanitizer(headersSanitizer);
builder.requestTrailersSanitizer(headersSanitizer);
builder.responseHeadersSanitizer(headersSanitizer);
builder.responseTrailersSanitizer(headersSanitizer);
}</pre>

@see HeadersSanitizer
@see #requestHeadersSanitizer(BiFunction)
@see #requestTrailersSanitizer(BiFunction)
@see #responseHeadersSanitizer(BiFunction)
@see #responseTrailersSanitizer(BiFunction)
core/src/main/java/com/linecorp/armeria/common/logging/AbstractLogFormatterBuilder.java