title: Turn off HttpClient Logging in .net core 3.1
body: <p>I've created a http client in asp.net core3.1. And injected it in via startup and it works fine.</p>
  <pre><code>services.AddHttpClient&lt;MyClient&gt;();
  </code></pre>
  <p>However I can't control it's logging output. Been following the advice here
  <a href="https://docs.microsoft.com/en-us/aspnet/core/fundamentals/http-requests?view=aspnetcore-3.1#logging" rel="noreferrer">https://docs.microsoft.com/en-us/aspnet/core/fundamentals/http-requests?view=aspnetcore-3.1#logging</a></p>
  <p>I've tried all sorts in my config. It currently looks like this</p>
  <pre><code>  &quot;Logging&quot;: {
      &quot;IncludeScopes&quot;: false,
      &quot;LogLevel&quot;: {
        &quot;Default&quot;: &quot;Warning&quot;,
        &quot;System&quot;: &quot;Error&quot;,
        &quot;System.Net.Http&quot;: &quot;Warning&quot;,
        &quot;System.Net.Http.HttpClient&quot;: &quot;Warning&quot;,
        &quot;System.Net.Http.HttpClient.MyClient.LogicalHandler&quot;: &quot;Warning&quot;,
        &quot;System.Net.Http.HttpClient.MyClient.ClientHandler&quot;: &quot;Warning&quot;,
        &quot;Microsoft.AspNetCore.Hosting&quot;: &quot;Warning&quot;,
        &quot;Microsoft.Hosting.Lifetime&quot;: &quot;Warning&quot;
      }
    },
  </code></pre>
  <p>But I keep getting the infomation logs e.g.</p>
  <pre><code>Level&quot;:&quot;Information&quot;,&quot;MessageTemplate&quot;:&quot;Received HTTP response after {ElapsedMilliseconds}ms - {StatusCode}&quot;,&quot;Properties&quot;:{&quot;ElapsedMilliseconds&quot;:895.4859,&quot;StatusCode&quot;:&quot;UnprocessableEntity&quot;,&quot;EventId&quot;:{&quot;Id&quot;:101,&quot;Name&quot;:&quot;RequestEnd&quot;}
  
  &quot;Level&quot;:&quot;Information&quot;,&quot;MessageTemplate&quot;:&quot;End processing HTTP request after {ElapsedMilliseconds}ms - {StatusCode}&quot;,&quot;Properties&quot;:{&quot;ElapsedMilliseconds&quot;:932.1484,&quot;StatusCode&quot;:&quot;UnprocessableEntity&quot;,&quot;EventId&quot;:{&quot;Id&quot;:101,&quot;Name&quot;:&quot;RequestPipelineEnd&quot;}
  </code></pre>
  <p>The sourcecontext is logging too. And this logs as &quot;SourceContext&quot;:&quot;System.Net.Http.HttpClient.MyClient.ClientHandler&quot; which rules out a typing issue in my view</p>