title: .NET 6 logging to file
body: <p>I'm upgrading a .NET core application that uses MS logging to .NET 6.  Before it was configured to log to a file with appsettings.json looking like below:</p>
  <pre><code>&quot;Logging&quot;: {
      &quot;LogFileName&quot;: &quot;{MMddyyyy}.log&quot;,
      &quot;LogFilePath&quot;: &quot;E:\\Logs&quot;,   
      &quot;MaxLogFileSize&quot;: 20,
      &quot;IncludeScopes&quot;: false,
      &quot;LogLevel&quot;: {
        &quot;Default&quot;: &quot;Debug&quot;,
        &quot;System&quot;: &quot;Information&quot;
      }
  </code></pre>
  <p>Looks like the LogFileName and other attributes under Logging are invalid now.  Where do I put these attributes now?  I tried &quot;Debug&quot; but that doesn't write to a file.</p>