title: No service for type 'Microsoft.Extensions.Logging.ILoggingBuilder' has been registered
body: <p>I am building brand new Web APIs with .NET core 2.2. In my <code>Startup.cs</code> I have set <code>ILoggerFactory</code> in configure method. When I do such a thing and add following code</p>
  
  <pre><code>loggerFactory.AddConsole();
  loggerFactory.AddDebug();
  </code></pre>
  
  <p>I get information saying that this method is obsolete and it will be removed in future versions, instead I should use <code>ILoggingBuilder</code>.No problem, I have replaced  with this new logging method and as soon as I start Web APIs I get error </p>
  
  <blockquote>
    <p>InvalidOperationException: No service for type 'Microsoft.Extensions.Logging.ILoggingBuilder' has been registered.</p>
  </blockquote>
  
  <p>and my output window shows this </p>
  
  <blockquote>
    <p>Could not resolve a service of type 'Microsoft.Extensions.Logging.ILoggingBuilder' for the parameter 'loggingBuilder' of method.</p>
  </blockquote>
  
  <p>I am new to .NET core, but am I missing something here? With ILoggerFactury, I did not have to register any services and logging would work just fine. <a href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.extensions.logging.iloggingbuilder?view=aspnetcore-2.1" rel="noreferrer">Microsoft's documentation here</a> is not really helpful.</p>
  
  <p>Startup.cs looks like this:</p>
  
  <pre><code>public class Startup
  {
      // This method gets called by the runtime. Use this method to add services to the container.
      // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
      public void ConfigureServices(IServiceCollection services)
      {
          services.AddMvc();
      }
  
      // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
      public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggingBuilder loggingBuilder)
      {
          loggingBuilder.AddConsole();
          loggingBuilder.AddDebug();
  
          if (env.IsDevelopment())
          {
              app.UseDeveloperExceptionPage();
          }
          else
          {
              app.UseExceptionHandler();
          }
          app.UseMvc();
  
          //app.Run(async (context) =&gt;
          //{
          //    await context.Response.WriteAsync("Hello World!");
          //});
      }
  }
  </code></pre>
  
  <p>Program.cs looks like this:</p>
  
  <pre><code>public class Program
  {
      public static void Main(string[] args)
      {
          CreateWebHostBuilder(args).Build().Run();
      }
  
      public static IWebHostBuilder CreateWebHostBuilder(string[] args) =&gt;
          WebHost.CreateDefaultBuilder(args)
              .UseStartup&lt;Startup&gt;();
  }
  </code></pre>