Class HelixHttpLoggingInterceptor.Builder
java.lang.Object
com.helixframework.okhttp.logging.HelixHttpLoggingInterceptor.Builder
- Enclosing class:
- HelixHttpLoggingInterceptor
Builder for creating new instances of
HelixHttpLoggingInterceptor.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a new instance ofHelixHttpLoggingInterceptor.logger(org.slf4j.Logger logger) Adds a customLogger.redactHeader(String headerName) Adds a header to redact from logging.redactHeaders(Set<String> headerNames) Adds a set of headers to redact from logging.
-
Method Details
-
logger
Adds a customLogger.- Parameters:
logger- custom logger- Returns:
- this
HelixHttpLoggingInterceptor.Builder
-
redactHeaders
Adds a set of headers to redact from logging.- Parameters:
headerNames- headers to redact- Returns:
- this
HelixHttpLoggingInterceptor.Builder
-
redactHeader
Adds a header to redact from logging.- Parameters:
headerName- header to redact- Returns:
- this
HelixHttpLoggingInterceptor.Builder
-
build
Creates a new instance ofHelixHttpLoggingInterceptor.- Returns:
- a
HelixHttpLoggingInterceptor
-