I am trying to apply NLog to my ASP.NET core application. I am following the guide from NLog website: https://github.com/NLog/NLog.Web/wiki/Getting-started-with-ASP.NET-Core-2
The below is the rules suggested for nlog.config
<rules>
<!--All logs, including from Microsoft-->
<logger name="*" minlevel="Trace" writeTo="allfile" />
<!--Skip non-critical Microsoft logs and so log only own logs-->
<logger name="Microsoft.*" maxLevel="Info" final="true" /> <!-- BlackHole without writeTo -->
<logger name="*" minlevel="Trace" writeTo="ownFile-web" />
</rules>
There are two lines have the same logger name patterns
logger name="*" minlevel="Trace"
but for different targets. One is for allfile target, the other is for ownFile-web target
It does not make sense for me. It seems duplicate to me. Any comments? Thanks!