public final class RequestPolicyOptions extends Object
| Constructor and Description |
|---|
RequestPolicyOptions(HttpPipelineLogger logger)
Create a new RequestPolicy.Options object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
log(HttpPipelineLogLevel logLevel,
String message,
Object... formattedMessageArguments)
Attempt to log the provided message to the provided logger.
|
boolean |
shouldLog(HttpPipelineLogLevel logLevel)
Get whether or not a log with the provided log level should be logged.
|
public RequestPolicyOptions(HttpPipelineLogger logger)
logger - The logger that has been assigned to the HttpPipeline.public boolean shouldLog(HttpPipelineLogLevel logLevel)
logLevel - The log level of the log that will be logged.public void log(HttpPipelineLogLevel logLevel, String message, Object... formattedMessageArguments)
logLevel - The log level of this log.message - The message of this log.formattedMessageArguments - The formatted arguments to apply to the message./**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/