--- Chris Restall <[EMAIL PROTECTED]> wrote:

> Provided I keep the remoteAddress set to the loopback "127.0.0.1", I
> can
> view the logging information via Chainsaw on my local machine.  When
> I
> configure the UdpAppender on another machine on the same local
> network
> (no firewalls up)  to point to my IP for the remoteAddress, I never
> get
> anything in Chainsaw.  I checked with a packet sniffer and see no UDP
> packets being sent via the remote machine.  Am I correct to assume
> that
> the UDPAppender should be able to send UDP packets to another IP?
>

Yes.

I'm using log4net's UdpAppender with a version of Chainsaw from about
a month ago.  My log4net appender looks like:

<appender name="UdpAppender" type="log4net.Appender.UdpAppender">
<remoteAddress value="99TVVAD" />
<remotePort value="5151" />
   <layout type="log4net.Layout.XmlLayoutSchemaLog4j">
    </layout>
</appender>

My chainsaw configuration is:

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/";
debug="true">
<appender name="A2" class="org.apache.log4j.ConsoleAppender">
     <layout class="org.apache.log4j.SimpleLayout"/>
</appender>

<plugin name="UDPReceiver" class="org.apache.log4j.net.UDPReceiver">
                   <param name="Port" value="5151"/>
</plugin>   

<root>
                   <level value="debug"/>
</root>
</log4j:configuration>

Reply via email to