You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by James Stauffer <st...@gmail.com> on 2007/06/04 15:03:13 UTC
Re: Proper startup order?
Is it possible that log4j is being configured twice because AFAIK
configuration doesn't happen in the background?
Also log4j config messages aren't generally sent to your logs unless
you have log4j debugging turned on and use a ConsoleAppender.
On 5/26/07, Rich Adili <Ri...@xata.com> wrote:
> 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
>
>
--
James Stauffer http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org