addHttpClientLogging method
void
addHttpClientLogging()
Adds the logging filter to the HTTP client factory pipeline.
This should be called after adding logging services to enable automatic logging of HTTP requests.
Implementation
void addHttpClientLogging() {
tryAddIterable(
ServiceDescriptor.singleton<HttpMessageHandlerBuilderFilter>(
(sp) => LoggingHttpMessageHandlerBuilderFilter(
sp.getRequiredService<LoggerFactory>(),
sp.getRequiredService<OptionsMonitor<HttpClientFactoryOptions>>(),
),
),
);
}