name isn't hostname...socketAppenders require a destination host and port.  The 
machine socketReceiver runs on IS the destination host - the 'name' property is just 
used for display purposes - maybe you have multiple socketreceivers configured to 
receive events from multiple machines, for example.

SocketReceiver uses socketserver accept to accept connections from socketAppenders on 
the port provided.

Multicast is udp - the difference is really that multicastappender joins a multicast 
group and relies on routers to forward packets to interested networks.

UDP appender sends UDP packets to a target host.  UDP receiver receives 
the packet and converts the packet to an event and hands it over to Chainsaw.

Multicast packets are sent to a multicast group by the multicast appender.  Any number 
of machines can send packets to the multicast group.

Any number of machines can also join the multicast group using a multicast receiver 
and receive all of the logging events sent by anyone sending to that multicast group.

UDP/multicast is an unreliable protocol (you may lose events) and there are limits on 
the packet size (the smallest MTU of any link in the chain, I believe).

Here is a link to the net package containing the sources for these receivers and 
appenders: 
http://cvs.apache.org/viewcvs.cgi/logging-log4j/src/java/org/apache/log4j/net/

Does that help?

Scott

-----Original Message-----
From:   Jung, Eric [mailto:[EMAIL PROTECTED]
Sent:   Tue 10/5/2004 12:13 PM
To:     'Log4J Users List'
Cc:     Kapur, Rajneesh
Subject:        RE: [Chainsaw] IP address for SocketReceiver is lost when editbox 
loses focus
Thanks, Scott. It wasn't clear to me that "name" is "hostname." 

Maybe you could answer another log4j/Chainsaw question, if you have a
moment...do you know the difference between MulticastReceiver and
UDPReceiver? I always thought UDP *is* a type of multicasting. I'm also
looking for sample log4j.xml configurations for appenders corresponding to
MulticastReceiver and UDPReceiver.

Thank you again,
Eric Jung

-----Original Message-----
From: Scott Deboy [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 05, 2004 2:42 PM
To: Log4J Users List
Subject: RE: [Chainsaw] IP address for SocketReceiver is lost when editbox
loses focus


You should just need to specify the 'name' and 'port' fields to get a
SocketReceiver to work (unless you're getting ClassNotFoundExceptions -
display the WebStart console and look for exceptions).

socketDetails will show you the connected sockets, which don't exist when
you first create it, and listener is deprecated.

If you are getting classNotFoundExceptions, move the socket appender to the
beginning of your list of appenders, and remove 'locationInfo=true' if it's
set on the socketappender.

Scott


-----Original Message-----
From:   Jung, Eric [mailto:[EMAIL PROTECTED]
Sent:   Tue 10/5/2004 10:48 AM
To:     '[EMAIL PROTECTED]'
Cc:     
Subject:        [Chainsaw] IP address for SocketReceiver is lost when
editbox loses focus
Hi,
When I create a new SocketReceiver in Chainsaw and try to configure the
connectedSocketDetails or listener properties, anything I type in those
fields is erased when the field loses focus. Actually, I can't type anything
at all for connectedSocketDetails. I can type an IP or DNS name for the
listener property, but as soon as I click "OK" to save what I've typed, the
value is cleared.

This used to work a few weeks ago -- must have been a prior release -- but
now I can't get Chainsaw SocketReceivers to work at all.

Any advice would be greatly appreciated.

Thank you in advance,
Eric Jung

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to