public final class LoggingClientBuilder extends LoggingDecoratorBuilder<T>
LoggingClient.| Constructor and Description |
|---|
LoggingClientBuilder()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
LoggingClient |
build(HttpClient delegate)
Returns a newly-created
LoggingClient decorating delegate based on the properties of
this builder. |
Function<? super HttpClient,LoggingClient> |
newDecorator()
Returns a newly-created
LoggingClient decorator based on the properties of this builder. |
T |
sampler(Sampler<? super ClientRequestContext> sampler)
Sets the
Sampler that determines which request needs logging. |
T |
samplingRate(float samplingRate)
Sets the rate at which to sample requests to log.
|
contentSanitizer, failedResponseLogLevel, failureResponseLogLevel, headersSanitizer, logger, logger, requestContentSanitizer, requestContentSanitizer, requestHeadersSanitizer, requestHeadersSanitizer, requestLogLevel, requestLogLevel, requestLogLevelMapper, requestLogLevelMapper, requestTrailersSanitizer, requestTrailersSanitizer, responseCauseSanitizer, responseCauseSanitizer, responseContentSanitizer, responseContentSanitizer, responseHeadersSanitizer, responseHeadersSanitizer, responseLogLevelMapper, responseLogLevelMapper, responseTrailersSanitizer, responseTrailersSanitizer, successfulResponseLogLevel, successfulResponseLogLevel, toString@Deprecated public LoggingClientBuilder()
LoggingClient.builder().public LoggingClient build(HttpClient delegate)
LoggingClient decorating delegate based on the properties of
this builder.public Function<? super HttpClient,LoggingClient> newDecorator()
LoggingClient decorator based on the properties of this builder.public T samplingRate(float samplingRate)
0.0 and 1.0 will
cause a random sample of the requests to be logged.public T sampler(Sampler<? super ClientRequestContext> sampler)
Sampler that determines which request needs logging.Copyright © 2020 LeanCloud. All rights reserved.