HttpResponseLogger Interface
public interface HttpResponseLogger
Manages logging HTTP responses in HttpLoggingPolicy.
Method Summary
Modifier and Type | Method and Description |
---|---|
default
Log |
getLogLevel(HttpResponseLoggingContext loggingOptions)
Gets the LogLevel used to log the HTTP response. |
abstract
Mono<Http |
logResponse(ClientLogger logger, HttpResponseLoggingContext loggingOptions)
Logs the HTTP response. |
default
Http |
logResponseSync(ClientLogger logger, HttpResponseLoggingContext loggingOptions)
Logs the HTTP response. |
Method Details
getLogLevel
public default LogLevel getLogLevel(HttpResponseLoggingContext loggingOptions)
Gets the LogLevel used to log the HTTP response.
By default, this will return INFORMATIONAL.
Parameters:
Returns:
logResponse
public abstract Mono
Logs the HTTP response.
To get the LogLevel used to log the HTTP response use getLogLevel(HttpResponseLoggingContext loggingOptions).
Parameters:
Returns:
logResponseSync
public default HttpResponse logResponseSync(ClientLogger logger, HttpResponseLoggingContext loggingOptions)
Logs the HTTP response. To get the LogLevel used to log the HTTP response use getLogLevel(HttpResponseLoggingContext loggingOptions) .
Parameters:
Returns: