Class LoggingOptions

java.lang.Object
com.auth0.client.LoggingOptions

public class LoggingOptions extends Object
Used to configure the HTTP Logging options.
  • Constructor Details

  • Method Details

    • getLogLevel

      public LoggingOptions.LogLevel getLogLevel()
      Returns:
      the log level of this instance.
    • getHeadersToRedact

      public Set<String> getHeadersToRedact()
      Returns:
      the headers that should be redacted from the output log.
    • setHeadersToRedact

      public void setHeadersToRedact(Set<String> headersToRedact)
      Sets the headers to redact from the log. When using HEADERS or BODY logging levels, there is the potential of leaking sensitive information such as "Authorization" or "Cookie" headers. Note that this does not redact any of the body contents from being logged, so care must always be taken with HEADERS or BODY log levels.
      Parameters:
      headersToRedact - the Set of headers to redact.