logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rich Adili" <Rich.Ad...@xata.com>
Subject Proper startup order?
Date Sat, 26 May 2007 21:14:55 GMT
Hi,

I'm rather new to logging and having some trouble pinning down the
proper startup sequence. Current code appears below. If "dosomething"
writes to the log, the output is mingled with the log4j initialization
output. Users find this rather confusing. How can I delay my stuff until
log4j has finished speaking its piece? 

DOMConfigurator.configureAndWatch("conf/log4j.xml");

org.apache.commons.logging.Log log =
LogFactory.getFactory().getInstance(Xatanet.class);

dosomething(log);


Rich

---------------------------------------------------------------------
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