I have the following rules on a NLog.config file:
<rules>
<logger name="*" minlevel="Trace" writeTo="graylog" />
<logger name="*" minlevel="Trace" writeTo="sqlserver" />
<logger name="*" minlevel="Trace" writeTo="xml" />
<logger name="*" minlevel="Trace" writeTo="console" />
</rules>
I want my application to try to log to the first rule, and if it succeeds make this rule final, not logging to anywhere else. If an error occurs (say, the Graylog server is down) it goes on to the second rule, and so on.
Is there any way to make this happen?