HttpResponseLogger Interface
public interface HttpResponseLogger
Manages logging HTTP responses in HttpLoggingPolicy.
Method Summary
Modifier and Type | Method and Description |
---|---|
default LogLevel |
getLogLevel(HttpResponseLoggingContext loggingOptions)
Gets the LogLevel used to log the HTTP response. |
abstract |
logResponse(ClientLogger logger, HttpResponseLoggingContext loggingOptions)
Logs the HTTP response. |
default HttpResponse |
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: