public class HttpLoggingPolicy extends Object implements HttpPipelinePolicy
| Constructor and Description |
|---|
HttpLoggingPolicy(HttpLogDetailLevel detailLevel)
Creates an HttpLoggingPolicy with the given log level.
|
HttpLoggingPolicy(HttpLogDetailLevel detailLevel,
boolean prettyPrintJSON)
Creates an HttpLoggingPolicy with the given log level and pretty printing setting.
|
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<HttpResponse> |
process(HttpPipelineCallContext context,
HttpPipelineNextPolicy next)
Process provided request context and invokes the next policy.
|
public HttpLoggingPolicy(HttpLogDetailLevel detailLevel)
detailLevel - The HTTP logging detail level.public HttpLoggingPolicy(HttpLogDetailLevel detailLevel, boolean prettyPrintJSON)
detailLevel - The HTTP logging detail level.prettyPrintJSON - If true, pretty prints JSON message bodies when logging.
If the detailLevel does not include body logging, this flag does nothing.public reactor.core.publisher.Mono<HttpResponse> process(HttpPipelineCallContext context, HttpPipelineNextPolicy next)
HttpPipelinePolicyprocess in interface HttpPipelinePolicycontext - request contextnext - the next policy to invokeCopyright © 2019 Microsoft Corporation. All rights reserved.