logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gülcü <c...@qos.ch>
Subject Re: Override values from log4j.properties on jvm command line?
Date Thu, 25 Sep 2003 07:48:29 GMT
At 04:25 PM 9/24/2003 -0700, Karr, David wrote:
>I have a log4j.properties file that has the default level of the root
>logger set to "INFO".  When I run my application in my debugger, I'd
>typically like to set the default level to "DEBUG", but without having
>to change the properties file, and without having to change code.
>I thought that I could just add "-Dlog4j.rootLogger=DEBUG" to the jvm
>command line, but that seemed to have no effect.

That's is normal. Log4j does not scan the system properties to check 
whether they contain log4j configuration directives.

You to need a configuration file.

>I guess I'm using Log4J 1.2.8.

Ceki Gülcü

      For log4j documentation consider "The complete log4j manual"
      ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp

      import org.apache.Facetime;
      ApacheCon US 2003, 18-21 November http://apachecon.com/

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

View raw message