I'd like to set all loggers to log to a file except one for a specific class. I can't seem to figure out how to do it. Currently I'm trying the following nlog.config
No matter what I do, the interceptor is logging
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<targets>
<target name="file" xsi:type="File"
fileName="${basedir}/logs/log.log"
maxArchiveFiles="1" archiveAboveSize="1000000" />
</targets>
<rules>
<logger name="*" minlevel="Debug" writeTo="file" />
<logger name="MyApp.DbInterceptionConfig+LoggingEFInterceptor" minlevel="Info" writeTo="file" />
</rules>
</nlog>