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 Paul Smith <pa...@lawlex.com.au> on 2003/11/13 00:58:21 UTC

RE: I cannot figure out where my extra message line comes from onthe console

> Okay -- so my next question is -- what's the easiest way to get my
> program to ignore that log4j.properties file?     (I don't really want
> to use my own file -- I just want to configure it in the code).

I think the following System property would do it:

-Dlog4j.defaultInitOverride=true

This will suppress the auto-log4j init.

cheers,

Paul


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