title: Why is logging setup in CreateHostBuilder and not in ConfigureServices?
body: <p>Context: Simple out-of-the-box blazor 3.1 SERVER SIDE example - adding logging (just trying to get stuff to the debug conolse in VS2019 in components).</p>
  
  <p>I leave ConfigureServices as is, and have found SO examples that logging is setup in program.cs(!)
  This works:</p>
  
  <pre><code>    public static IHostBuilder CreateHostBuilder(string[] args) =&gt;
          Host.CreateDefaultBuilder(args)
              .ConfigureLogging(
                  logging =&gt;
                  {
                      logging.ClearProviders();
                      logging.AddConsole();
                  })
  </code></pre>
  
  <p>ect.</p>
  
  <p>In my components, everything is resolved fine with</p>
  
  <pre><code>[Inject] public ILogger&lt;Foo&gt; Logger { get; set; }
  </code></pre>
  
  <p>But why not in ConfigureServices, where rest of stuff, that should be DI'ed, is setup ???</p>
  
  <ol>
  <li>Is there a "under the hood" DI going on? (a little like what was
  going on in .Net frameework w/ webapi)?</li>
  <li>Can it be moved to ConfigureServices with <em>excact</em> same result (or
  at all )?</li>
  </ol>