Class HttpLoggingConfigurationProperties
java.lang.Object
com.azure.spring.cloud.autoconfigure.properties.core.client.HttpLoggingConfigurationProperties
- All Implemented Interfaces:
com.azure.spring.cloud.core.provider.HttpLoggingOptionsProvider.HttpLoggingOptions
public class HttpLoggingConfigurationProperties
extends Object
implements com.azure.spring.cloud.core.provider.HttpLoggingOptionsProvider.HttpLoggingOptions
Options related to http logging. For example, if you want to log the http request or response, you could set the
* level to
HttpLogDetailLevel.BASIC
or some other levels.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.http.policy.HttpLogDetailLevel
getLevel()
void
setLevel
(com.azure.core.http.policy.HttpLogDetailLevel level) Set the logging detail level.void
setPrettyPrintBody
(Boolean prettyPrintBody) Set whether to pretty print body.
-
Constructor Details
-
HttpLoggingConfigurationProperties
public HttpLoggingConfigurationProperties()
-
-
Method Details
-
getLevel
public com.azure.core.http.policy.HttpLogDetailLevel getLevel()- Specified by:
getLevel
in interfacecom.azure.spring.cloud.core.provider.HttpLoggingOptionsProvider.HttpLoggingOptions
-
setLevel
public void setLevel(com.azure.core.http.policy.HttpLogDetailLevel level) Set the logging detail level.- Parameters:
level
- The logging detail level.
-
getAllowedHeaderNames
- Specified by:
getAllowedHeaderNames
in interfacecom.azure.spring.cloud.core.provider.HttpLoggingOptionsProvider.HttpLoggingOptions
-
getAllowedQueryParamNames
- Specified by:
getAllowedQueryParamNames
in interfacecom.azure.spring.cloud.core.provider.HttpLoggingOptionsProvider.HttpLoggingOptions
-
getPrettyPrintBody
- Specified by:
getPrettyPrintBody
in interfacecom.azure.spring.cloud.core.provider.HttpLoggingOptionsProvider.HttpLoggingOptions
-
setPrettyPrintBody
Set whether to pretty print body.- Parameters:
prettyPrintBody
- Whether to pretty print body.
-