Package com.azure.core.http.policy
Interface HttpResponseLogger
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface HttpResponseLogger
Manages logging HTTP responses inHttpLoggingPolicy.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default LogLevelgetLogLevel(HttpResponseLoggingContext loggingOptions)Gets theLogLevelused to log the HTTP response.Mono<HttpResponse>logResponse(ClientLogger logger, HttpResponseLoggingContext loggingOptions)Logs the HTTP response.
-
-
-
Method Detail
-
getLogLevel
default LogLevel getLogLevel(HttpResponseLoggingContext loggingOptions)
Gets theLogLevelused to log the HTTP response.By default this will return
LogLevel.INFORMATIONAL.- Parameters:
loggingOptions- The information available during response logging.- Returns:
- The
LogLevelused to log the HTTP response.
-
logResponse
Mono<HttpResponse> logResponse(ClientLogger logger, HttpResponseLoggingContext loggingOptions)
Logs the HTTP response.To get the
LogLevelused to log the HTTP response usegetLogLevel(HttpResponseLoggingContext).- Parameters:
logger- TheClientLoggerused to log the response.loggingOptions- The information available during response logging.- Returns:
- A reactive response that returns the HTTP response that was logged.
-
-