You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
⚠️ Make sure also to check any environment specific appsettings.json. Ex. appsettings.development.json
Notice NLog.Web.AspNetCore ver. 5+ will by default ignore any filters configured in appsettings.json for Microsoft LoggerFactory. Instead it will only react to the logging-rules in NLog.config. The options ReplaceLoggerFactory and RemoveLoggerFactoryFilter in NLogAspNetCoreOptions can be used to re-enable the old behavior. Example:
The recommended solution is updating the NLog configuration to include the wanted filtering:
<rules>
<loggername="System.*"finalMinLevel="Warn" /> <!-- Insert at the top -->
<loggername="Microsoft.*"finalMinLevel="Warn" /> <!-- Insert at the top --><!-- Everything else -->
</rules>