ah. a good point. you probably just want the 2nd one:

-Dlog4j.configuration=file:/url/path/to/log4j.xml

you can just try it also (along with the -Dlog4j.debug=true suggested 
previously)

■ DOUGLAS E. WEGSCHEID // LEAD ENGINEER
(269) 923-5278 // [email protected]
"A wrong note played hesitatingly is a wrong note. A wrong note played 
with conviction is interpretation."



"Mikhail T." <[email protected]> 
02/24/2011 12:33 PM
Please respond to
"Log4J Users List" <[email protected]>


To
Jacob Kjome <[email protected]>
cc
[email protected]
Subject
Re: Separating some classes' messages from <root>






On 24.02.2011 12:26, Jacob Kjome wrote:
> -Dlog4j.defaultInitOverride=true
> -Dlog4j.configuration=file:/url/path/to/log4j.xml
Thanks! Do I need the first of these switches for the second one to have 
effect?
> See more at...
> http://logging.apache.org/log4j/1.2/manual.html#defaultInit
The manual says:

   1. Setting the log4j.defaultInitOverride system property to any other
      value then "false" will cause log4j to skip the default
      initialization procedure (this procedure).

Which leaves things a bit unclear... Yours,

    -mi




Reply via email to