Package | Description |
---|---|
com.azure.core.http.policy |
Package containing HttpPipelinePolicy interface and its implementations.
|
com.azure.core.util |
Package containing core utility classes.
|
Modifier and Type | Method and Description |
---|---|
HttpLogOptions |
HttpLogOptions.addAllowedHeaderName(String allowedHeaderName)
Sets the given whitelisted header to the default header set that should be logged.
|
HttpLogOptions |
HttpLogOptions.addAllowedQueryParamName(String allowedQueryParamName)
Sets the given whitelisted query param that should be logged.
|
HttpLogOptions |
HttpLogOptions.setAllowedHeaderNames(Set<String> allowedHeaderNames)
Sets the given whitelisted headers that should be logged.
|
HttpLogOptions |
HttpLogOptions.setAllowedQueryParamNames(Set<String> allowedQueryParamNames)
Sets the given whitelisted query params to be displayed in the logging info.
|
HttpLogOptions |
HttpLogOptions.setApplicationId(String applicationId)
Deprecated.
Use
ClientOptions to configure applicationId . |
HttpLogOptions |
HttpLogOptions.setLogLevel(HttpLogDetailLevel logLevel)
Sets the level of detail to log on Http messages.
|
HttpLogOptions |
HttpLogOptions.setPrettyPrintBody(boolean prettyPrintBody)
Sets flag to allow pretty printing of message bodies.
|
HttpLogOptions |
HttpLogOptions.setRequestLogger(HttpRequestLogger requestLogger)
Sets the
HttpRequestLogger that will be used to log HTTP requests. |
HttpLogOptions |
HttpLogOptions.setResponseLogger(HttpResponseLogger responseLogger)
Sets the
HttpResponseLogger that will be used to log HTTP responses. |
Constructor and Description |
---|
HttpLoggingPolicy(HttpLogOptions httpLogOptions)
Creates an HttpLoggingPolicy with the given log configurations.
|
Modifier and Type | Method and Description |
---|---|
static String |
CoreUtils.getApplicationId(ClientOptions clientOptions,
HttpLogOptions logOptions)
Retrieves the application ID from either a
ClientOptions or HttpLogOptions . |
Copyright © 2021 Microsoft Corporation. All rights reserved.