Is there an easy way to enable/disable rules based on the build configuration? i.e. for a Debug build, I use the NLogViewer and Debugger targets, but for a Release build, I use File and EventLog. The rules section of my NLog.config file looks like this: <logger name="*" minLevel="Trace" writeTo="debug" /> <logger name="*" minLevel="Info" writeTo="viewer" final="true" /> <logger name="*" minlevel=