Interface HttpLoggingOptionsProvider.HttpLoggingOptions

All Known Implementing Classes:
HttpLoggingProperties
Enclosing interface:
HttpLoggingOptionsProvider

public static interface HttpLoggingOptionsProvider.HttpLoggingOptions
Interface to be implemented by classes that wish to describe logging options in http-based client sdks options. ≤ For example, if you want to log the http request or response, you could set the level to HttpLogDetailLevel.BASIC or some other levels.
  • Method Details

    • getLevel

      com.azure.core.http.policy.HttpLogDetailLevel getLevel()
      Gets the level of detail to log on HTTP messages.
      Returns:
      the http log detail level.
    • getAllowedHeaderNames

      Set<String> getAllowedHeaderNames()
      Gets the allowlist headers that should be logged.
      Returns:
      The list of allowlist headers.
    • getAllowedQueryParamNames

      Set<String> getAllowedQueryParamNames()
      Gets the allowlist query parameters.
      Returns:
      The list of allowlist query parameters.
    • getPrettyPrintBody

      Boolean getPrettyPrintBody()
      Gets flag to allow pretty printing of message bodies.
      Returns:
      whether to pretty print the message bodies.