title: How to read logging configuration from appsettings.json in .net Core 2.2
body: <p>In .net Core 2.1 it was done like this</p>
  
  <pre><code>var loggingConfig = configuration.GetSection("Logging");
  loggerFactory.AddConsole(loggingConfig);
  </code></pre>
  
  <p>I have moved it to ConfigureServices and now I get </p>
  
  <blockquote>
    <p>Error CS1503  Argument 2: cannot convert from 'Microsoft.Extensions.Configuration.IConfigurationSection' to 'System.Action Microsoft.Extensions.Logging.Console.ConsoleLoggerOptions' </p>
  </blockquote>