@FunctionalInterface public interface HttpResponseLogger
HttpLoggingPolicy
.Modifier and Type | Method and Description |
---|---|
default LogLevel |
getLogLevel(HttpResponseLoggingContext loggingOptions)
Gets the
LogLevel used to log the HTTP response. |
Mono<HttpResponse> |
logResponse(ClientLogger logger,
HttpResponseLoggingContext loggingOptions)
Logs the HTTP response.
|
default LogLevel getLogLevel(HttpResponseLoggingContext loggingOptions)
LogLevel
used to log the HTTP response.
By default this will return LogLevel.INFORMATIONAL
.
loggingOptions
- The information available during response logging.LogLevel
used to log the HTTP response.Mono<HttpResponse> logResponse(ClientLogger logger, HttpResponseLoggingContext loggingOptions)
To get the LogLevel
used to log the HTTP response use HttpResponseLogger.getLogLevel(HttpResponseLoggingContext)
.
logger
- The ClientLogger
used to log the response.loggingOptions
- The information available during response logging.Copyright © 2021 Microsoft Corporation. All rights reserved.