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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.http.policy.HttpLogDetailLevelgetLevel()voidsetLevel(com.azure.core.http.policy.HttpLogDetailLevel level) Set the logging detail level.voidsetPrettyPrintBody(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:
getLevelin 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:
getAllowedHeaderNamesin interfacecom.azure.spring.cloud.core.provider.HttpLoggingOptionsProvider.HttpLoggingOptions
-
getAllowedQueryParamNames
- Specified by:
getAllowedQueryParamNamesin interfacecom.azure.spring.cloud.core.provider.HttpLoggingOptionsProvider.HttpLoggingOptions
-
getPrettyPrintBody
- Specified by:
getPrettyPrintBodyin interfacecom.azure.spring.cloud.core.provider.HttpLoggingOptionsProvider.HttpLoggingOptions
-
setPrettyPrintBody
Set whether to pretty print body.- Parameters:
prettyPrintBody- Whether to pretty print body.
-