logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gülcü <c...@qos.ch>
Subject RE: Question about implementation of SocketAppender
Date Thu, 05 Aug 2004 19:56:32 GMT

There is yet another misunderstanding here. SocketAppender does not launch 
a SocketServer. Do you see why that changes everything in relation to your 
messages?

At 09:43 PM 8/5/2004, you wrote:
>I'm thinking about extending it so that it starts its own SocketServer on
>the correct port.
>This way, even with potentially multiple JVMs running, there will only be
>one SocketServer, so there will only be one process writing to a
>particular log file (so having the SocketServer use a rolling file
>appender will be safe).
>
>This is because when there are multiple JVMs running, only 1 of the JVMs
>will be able to have its SocketServer bind to the port, the others will
>fail (quietly) but the ability to log as clients to the SocketServer will
>succeed.
>
>This avoids the hassle of writing a process to monitor a separate
>SocketServer, and re-start it if it isn't running. Of course this only
>works for multiple JVMs on the same host, but that is my current issue.
>
>Scott, were you willing to change the code? Or were you just curious?
>
>--
>Tom Goetze
>

-- 
Ceki Gülcü

      For log4j documentation consider "The complete log4j manual"
      ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp  



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message