title: How to configure NLog in app.config in .net 6 to write on 2 different targets?
body: <p>I want to configure NLog to write in a file and also to send the logs via http sink to an application i build which saves the logs also in database.
  How is done the configuration of  NLog in app.config, in a .Net 6 Rest api to write to both targets in the same time?
  I am using this configuration:</p>
  <pre class="lang-json prettyprint-override"><code>&quot;rules&quot;: [
        {
          &quot;logger&quot;: &quot;*&quot;,
          &quot;minLevel&quot;: &quot;Info&quot;,
          &quot;writeTo&quot;: &quot;logfile&quot;
        }
      ]
  </code></pre>