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 Details

    • HttpLoggingConfigurationProperties

      public HttpLoggingConfigurationProperties()
  • Method Details

    • getLevel

      public com.azure.core.http.policy.HttpLogDetailLevel getLevel()
      Specified by:
      getLevel in interface com.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

      public Set<String> getAllowedHeaderNames()
      Specified by:
      getAllowedHeaderNames in interface com.azure.spring.cloud.core.provider.HttpLoggingOptionsProvider.HttpLoggingOptions
    • getAllowedQueryParamNames

      public Set<String> getAllowedQueryParamNames()
      Specified by:
      getAllowedQueryParamNames in interface com.azure.spring.cloud.core.provider.HttpLoggingOptionsProvider.HttpLoggingOptions
    • getPrettyPrintBody

      public Boolean getPrettyPrintBody()
      Specified by:
      getPrettyPrintBody in interface com.azure.spring.cloud.core.provider.HttpLoggingOptionsProvider.HttpLoggingOptions
    • setPrettyPrintBody

      public void setPrettyPrintBody(Boolean prettyPrintBody)
      Set whether to pretty print body.
      Parameters:
      prettyPrintBody - Whether to pretty print body.