title: Unable to reduce verbosity of specific loggers in NLog
body: <p>I upgraded from NLog 4. to NLog v5 a couple of days ago in an ASP.Net / .Net 6 environment. As soon as I updated I noticed that I was getting details from many more loggers than I had in the past (I still haven't figure out why).</p>
  <p>To reduce the chattiness, I began creating rules in my NLog.config to remove the noise. I used both the NLog documentation as well as this SO question as my guide: <a href="https://stackoverflow.com/questions/66337872/nlog-disable-specific-logger-for-real">NLog disable specific logger - for real</a>.</p>
  <p>Unfortunately, the rules seem to be ignored. I'm still getting lots and lots of Info level logging from <code>Microsoft.AspNetCore.*</code> and <code>Microsoft.EntityFrameworkCore.*</code></p>
  <p>Am I missing something simple here?</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;
        internalLogLevel=&quot;Info&quot;
        internalLogFile=&quot;c:\temp\internal-nlog.txt&quot;&gt;
  
    &lt;!-- Ensure all times are logged in UTC --&gt;
    &lt;time type=&quot;AccurateUTC&quot; /&gt;
  
    &lt;!-- enable asp.net core layout renderers --&gt;
    &lt;extensions&gt;
      &lt;add assembly=&quot;NLog.Web.AspNetCore&quot;/&gt;
      &lt;add assembly=&quot;NLog.Database&quot;/&gt;
    &lt;/extensions&gt;
  
    &lt;!-- the targets to write to --&gt;
    &lt;targets&gt;
      &lt;target name=&quot;db&quot;
              xsi:type=&quot;Database&quot;
              commandType=&quot;StoredProcedure&quot;
              commandText=&quot;[dbo].[NLog_AddEntry_p]&quot;
              connectionString=&quot;${configsetting:item=ConnectionStrings.DefaultConnection}&quot;&gt;
        &lt;parameter name=&quot;@errorId&quot; layout=&quot;${mdlc:item=errorId}&quot; /&gt;
        &lt;parameter name=&quot;@ipAddress&quot; layout=&quot;${aspnet-request-ip}&quot; /&gt;
        &lt;parameter name=&quot;@machineName&quot; layout=&quot;${machinename}&quot; /&gt;
        &lt;parameter name=&quot;@siteName&quot; layout=&quot;${iis-site-name}&quot; /&gt;
        &lt;parameter name=&quot;@logged&quot; layout=&quot;${date}&quot; /&gt;
        &lt;parameter name=&quot;@level&quot; layout=&quot;${level}&quot; /&gt;
        &lt;parameter name=&quot;@username&quot; layout=&quot;${aspnet-user-identity}&quot; /&gt;
        &lt;parameter name=&quot;@message&quot; layout=&quot;${message}&quot; /&gt;
        &lt;parameter name=&quot;@logger&quot; layout=&quot;${logger}&quot; /&gt;
        &lt;parameter name=&quot;@properties&quot; layout=&quot;${all-event-properties:separator=|}&quot; /&gt;
        &lt;parameter name=&quot;@serverName&quot; layout=&quot;${aspnet-Request-Host}&quot; /&gt;
        &lt;parameter name=&quot;@serverAddress&quot; layout=&quot;${aspnet-request-url}&quot; /&gt;
        &lt;parameter name=&quot;@callSite&quot; layout=&quot;${callsite}&quot; /&gt;
  
        &lt;parameter name=&quot;@requestMethod&quot; layout=&quot;${aspnet-request-method}&quot; /&gt;
        &lt;parameter name=&quot;@payload&quot; layout=&quot;${aspnet-request-posted-body}&quot; /&gt;
        &lt;parameter name=&quot;@queryString&quot; layout=&quot;${aspnet-request-querystring}&quot; /&gt;
        &lt;parameter name=&quot;@referrer&quot; layout=&quot;${aspnet-request-referrer}&quot; /&gt;
        &lt;parameter name=&quot;@userAgent&quot; layout=&quot;${aspnet-request-useragent}&quot; /&gt;
          
        &lt;!--&lt;parameter name=&quot;@exception&quot; layout=&quot;${exception:tostring}:${stacktrace:format=Enum:topFrames=Integer:skipFrames=Integer:separator=String}&quot; /&gt;--&gt;
        &lt;parameter name=&quot;@exception&quot; layout=&quot;${exception:format=ToString,StackTrace:format=ToString}${newline}&quot; /&gt;
      &lt;/target&gt;
    &lt;/targets&gt;
  
    &lt;!-- rules to map from logger name to target --&gt;
    &lt;rules&gt;
        &lt;!--Disable logging of specific overly talkative loggers--&gt;
        &lt;logger name=&quot;Microsoft.AspNetCore.*&quot; minlevel=&quot;Warning&quot; final=&quot;true&quot; /&gt;
        &lt;logger name=&quot;Microsoft.EntityFrameworkCore.*&quot; minlevel=&quot;Warning&quot; final=&quot;true&quot; /&gt;
        &lt;!--END Disable logging of specific overly talkative loggers--&gt;
  
        &lt;logger name=&quot;*&quot; minlevel=&quot;Info&quot; writeTo=&quot;db&quot; /&gt;
        &lt;logger name=&quot;*&quot; minLevel=&quot;Fatal&quot; writeTo=&quot;mail&quot; /&gt;
    &lt;/rules&gt;
  &lt;/nlog&gt;
  </code></pre>