public class HttpLoggingPolicyFactory extends Object implements RequestPolicyFactory
| Constructor and Description |
|---|
HttpLoggingPolicyFactory(HttpLogDetailLevel detailLevel)
Creates an HttpLoggingPolicyFactory with the given log level.
|
HttpLoggingPolicyFactory(HttpLogDetailLevel detailLevel,
boolean prettyPrintJSON)
Creates an HttpLoggingPolicyFactory with the given log level and pretty printing setting.
|
| Modifier and Type | Method and Description |
|---|---|
RequestPolicy |
create(RequestPolicy next,
RequestPolicyOptions options)
Creates RequestPolicy.
|
public HttpLoggingPolicyFactory(HttpLogDetailLevel detailLevel)
detailLevel - The HTTP logging detail level.public HttpLoggingPolicyFactory(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 RequestPolicy create(RequestPolicy next, RequestPolicyOptions options)
RequestPolicyFactorycreate in interface RequestPolicyFactorynext - the next RequestPolicy in the request-response pipeline.options - The optional arguments that can be passed to a RequestPolicy./**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/