public class HttpLogOptions extends Object
| Constructor and Description |
|---|
HttpLogOptions() |
| Modifier and Type | Method and Description |
|---|---|
HttpLogOptions |
addAllowedHeaderName(String allowedHeaderName)
Sets the given whitelisted header that should be logged.
|
HttpLogOptions |
addAllowedQueryParamName(String allowedQueryParamName)
Sets the given whitelisted query param that should be logged.
|
Set<String> |
getAllowedHeaderNames()
Gets the whitelisted headers that should be logged.
|
Set<String> |
getAllowedQueryParamNames()
Gets the whitelisted query parameters.
|
HttpLogDetailLevel |
getLogLevel()
Gets the level of detail to log on HTTP messages.
|
HttpLogOptions |
setAllowedHeaderNames(Set<String> allowedHeaderNames)
Sets the given whitelisted headers that should be logged.
|
HttpLogOptions |
setAllowedQueryParamNames(Set<String> allowedQueryParamNames)
Sets the given whitelisted query params to be displayed in the logging info.
|
HttpLogOptions |
setLogLevel(HttpLogDetailLevel logLevel)
Sets the level of detail to log on Http messages.
|
public HttpLogDetailLevel getLogLevel()
HttpLogDetailLevel.public HttpLogOptions setLogLevel(HttpLogDetailLevel logLevel)
If logLevel is not provided, default value of HttpLogDetailLevel.NONE is set.
logLevel - The HttpLogDetailLevel.public Set<String> getAllowedHeaderNames()
public HttpLogOptions setAllowedHeaderNames(Set<String> allowedHeaderNames)
allowedHeaderNames - The list of whitelisted header names from the user.NullPointerException - If allowedHeaderNames is null.public HttpLogOptions addAllowedHeaderName(String allowedHeaderName)
allowedHeaderName - The whitelisted header name from the user.NullPointerException - If allowedHeaderName is null.public Set<String> getAllowedQueryParamNames()
public HttpLogOptions setAllowedQueryParamNames(Set<String> allowedQueryParamNames)
allowedQueryParamNames - The list of whitelisted query params from the user.public HttpLogOptions addAllowedQueryParamName(String allowedQueryParamName)
allowedQueryParamName - The whitelisted query param name from the user.NullPointerException - If allowedQueryParamName is null.Copyright © 2019 Microsoft Corporation. All rights reserved.