tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominic Mitchell <...@semantico.com>
Subject Re: Dynamically change log4j.xml
Date Wed, 01 Oct 2008 08:29:33 GMT
On 30 Sep 2008, at 17:20, Mohit Anchlia wrote:
> Is there a way to dynamically change the logging level of log4j.xml  
> in tomcat?

Not builtin.  But you can write some code in a servlet to change the  
logging level.  e.g.

   Logger l = Logger.getLogger("com.mycompany");
   l.setLevel(Level.DEBUG);

-Dom

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message