title: How can I create configure extension for ILoggingBuilder in ASP .Net Core 2.2?
body: <p>I use Asp .NET Core 2.2 and need log in file. And tried with ILoggerFactory:</p>
  
  <pre><code> loggerFactory.AddProvider(new MyOwnFileLogProvider());
  </code></pre>
  
  <p>But:</p>
  
  <pre><code>loggerFactory.AddConsole();//This method is obsolete and will be removed in a future version.
  </code></pre>
  
  <p>Ok, reject all factories and used:</p>
  
  <pre><code>WebHost.CreateDefaultBuilder(args)
                  .UseStartup&lt;Startup&gt;()
                  .UseConfiguration(config)
                  .UseKestrel()
                  .ConfigureLogging(logging =&gt;
                  {
                      logging.ClearProviders();
                      logging.AddConsole();
                  });
  </code></pre>
  
  <p>How can I create configure extension for ILoggingBuilder for file logging?</p>
  
  <pre><code>logging.AddFile();
  </code></pre>