Starting from .NET 8 there's a new extension method available for IHttpClientBuilder - RemoveAllLoggers()
Usage:
services.AddHttpClient("minos")
.RemoveAllLoggers()
Related GitHub issue link: [API Proposal] HttpClientFactory logging configuration