You can configure the minimum log levels in the nlog configuration rules section in the app.config file. So, for example, the following will configure nlog so that only warnings and higher (including errors and deadly, but not information or tracing) are written to the target file with the name "file":
<nlog> <rules> <logger name="*" minlevel="Warn" writeTo="file" /> </rules> </nlog>
source share