logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Piero Ottuzzi" <piero.ottu...@omnys.it>
Subject Re: hot change & cluster questions
Date Thu, 09 Mar 2006 15:15:18 GMT
Hi Nicolas,

we use log4j in a clustered environment and we create a file per node.
Say you have a log4j.log we then create a log4j_NODE1.log, log4j_NODE2.log, log4j_NODE3.log
in weblogic this is easy as in System.getProperty("weblogic.Name") you get the node name you
are actually running: cope this knowledge with org.apache.log4j.PropertyConfigurator and a
Startup servlet and you can get what you were looking for.
In our case you can also use "log4j variable expansion" and write a line in log4j.properties

Hope I was clear.

> Hi, 
>   1. I wonder what happens when the config properties file is reloaded 
> with configureAndWatch() : do we lost logs sent during this time? are 
> they 'bufferized'? and with the ConfigurationServlet ?
>   2. In a clustered environment, how to change config for all clustered 
> servers ?
>   Thx a lot!
> ---------------------------------
>  Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels
pour appeler la France et l'international.Téléchargez la version beta.

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

View raw message