title: How can I prevent HttpClient via IHttpClientFactory from logging to ILogger?
body: <p>I am writing a custom <code>ILoggerProvider</code> which forwards log messages over HTTP using an <code>HttpClient</code> instance obtained via the configured <code>IHttpClientFactory</code>:</p>
  
  <pre><code>public void ConfigureServices(IServiceCollection services)
  {
      services.AddHttpClient();
  }
  </code></pre>
  
  <p>When my <code>ILoggerProvider</code> forwards a batch of logs, its <code>HttpClient</code> generates additional log messages, which then get forwarded... resulting in a stack overflow of sorts.</p>
  
  <p>How can I suppress <strong>only</strong> the messages that are generated within the limited scope of the method that performs the forwarding, so that I can filter out logs from <code>HttpClient</code> or anything else that might be logging during that scope?</p>