title: NLog for .Net Core is not logging Debug information
body: <p>I've recently started writing .Net Core applications and I'm using NLog for my logging. I came up with the following NLog.config file. This will log if I use <code>_log.LogInformation(&quot;Log an INFO&quot;);</code> but not if I use <code>_log.LogDebug(&quot;Log a DEBUG&quot;);</code>.</p>
  <p>I do not have any logging settings in my appsettings.json file. I typically write console applications and VisualStudio template for console apps does not have any logging automatically added to appsettings.</p>
  <p>I'm using .Net Core 3.1 with the following NLog package.</p>
  <pre><code>&lt;PackageReference Include=&quot;NLog.Web.AspNetCore&quot; Version=&quot;4.9.3&quot; /&gt;
  </code></pre>
  <p>Anyone see why using the Debug wouldn't write to the log file?</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;
  &lt;nlog xmlns=&quot;http://www.nlog-project.org/schemas/NLog.xsd&quot;
        xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
        autoReload=&quot;true&quot;&gt;
  
    &lt;!-- enable asp.net core layout renderers --&gt;
    &lt;extensions&gt;
      &lt;add assembly=&quot;NLog.Web.AspNetCore&quot;/&gt;
    &lt;/extensions&gt;
  
    &lt;variable name=&quot;LogDirectory&quot; value=&quot;D:\logs\ProjectName&quot;/&gt;
  
    &lt;!-- the targets to write to --&gt;
    &lt;targets&gt;
      
      &lt;target xsi:type=&quot;File&quot; 
        name=&quot;DefaultTarget&quot; 
        fileName=&quot;${LogDirectory}\LogFile.log&quot;
        layout=&quot;${longdate} | ${callsite} | ${message}&quot;
        archiveAboveSize=&quot;3145728&quot;  
        archiveEvery=&quot;Day&quot;
        archiveFileName = &quot;${LogDirectory}/Archive/{#}.log&quot;  
        archiveNumbering = &quot;DateAndSequence&quot;            
        archiveDateFormat = &quot;yyyyMMdd&quot;  
        maxArchiveFiles = &quot;21&quot;            
      /&gt;
  
      &lt;target name=&quot;ConsoleTarget&quot;
        xsi:type=&quot;Console&quot;
        layout=&quot;${longdate} ${logger:shortName=True} ${message} ${onexception:EXCEPTION OCCURRED\:${exception:format=type,message,StackTrace,method:maxInnerExceptionLevel=8:innerFormat=type,message,StackTrace,method}}&quot;
      /&gt;
      
    &lt;/targets&gt;  
    &lt;rules&gt;
      &lt;logger name=&quot;Microsoft.*&quot; maxlevel=&quot;Info&quot; final=&quot;true&quot; /&gt; &lt;!-- BlackHole without writeTo --&gt;
      &lt;logger name=&quot;*&quot; minlevel=&quot;Debug&quot; writeTo=&quot;DefaultTarget,ConsoleTarget&quot; /&gt;
    &lt;/rules&gt;
  &lt;/nlog&gt;
  </code></pre>