|
|
I do it by setting a second Target just for exceptions:
<target name="viewer" xsi:type="NLogViewer" address="udp4://localhost:7001" /> <target name="viewer2" xsi:type="Network" layout="${exception:format=ToString}" address="udp4://localhost:7002" />
For the exceptions, Log2Console complains "The Log Event is not a valid log4j Xml block", but it shows up in the details pane.
Make sure to set up Log2Console for 2 receivers.
|