Hi,
I just started to use NLog and it is working fine untill I try to use Log2Console to view the log messages life. I found on this forum that I should use the Chainsaw target but it did not work: nothing showed up in Log2Console. I downloaded the Log2Console sources and tried to debug. I found that there was never an UDP message received. I then tried netcat and again did not receive any UDP message. I also tried the generic Network target with the same result. Since people have been able to use NLog with Log2Console I assume that I am doing something wrong. Any suggestions?
I am running NLog-1.0-Refresh on Vista. My program in which I use NLog is written using Visual C# 2008 express and the NLog configuration file used was:
<nlog xmlns="
http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance">
<targets>
<target name="console" xsi:type="Console"
layout="${level}: ${message}" />
<target name="viewer" xsi:type="Chainsaw" address="udp://localhost:7071" />
<target name="file" xsi:type="File" fileName="${basedir}/log.txt" />
</targets>
<rules>
<logger name="*" minlevel="Debug" writeTo="console" />
<logger name="*" minlevel="Debug" writeTo="viewer" />
</rules>
</nlog>
The logging to the console does work
Thanks