title: How to fix obsolete ILoggerFactory methods?
body: <p>I upgraded my project to .NET Core 2.2.x and got an obsolete warning regarding the following code - both lines:</p>
  
  <pre><code>public void Configure(IApplicationBuilder app, 
                        IHostingEnvironment env, 
                        ILoggerFactory loggerFactory) 
    {
      loggerFactory.AddConsole(Configuration.GetSection("Logging"));
  </code></pre>
  
  <p>The suggestion to fix is <code>The recommended alternative is AddConsole(this ILoggingBuilder builder)</code>.  I thought that is what I am using.</p>
  
  <p>What am I missing here?</p>