Hi Jojo, I'm with the same problem: I'd like to change the "log level" e also the "appender configurations" without redeploy my war (my log4j.properties file is bundled into the web-inf/classes)...
I have thought about a few - not very good - approaches (of course the best one would be an "out-of-box" solution): - I was wondering if I could change the log level by programming against Log4j memory beans...have you already tried that? I have already done this kind of configurations with Java code to initialize the appenders and levels, but I'm not sure if there are performance or "thread safe" issues related to modified them "on fly"... - Try to put my log4j.properties out of the war (something like "each war's log4j file into subdirectories of Tomcat's log directory"). This would also require app code to "reload" log4j configuration - I don't know if it's possible... - Manage log4j configurations as JMX beans...I'm not using JMX in depth but it seems that I'd be able to modify the configuration this way. Did you already get any answer about this subject? Thanks! Paulo -----Mensagem original----- De: Jojo Paderes [mailto:[EMAIL PROTECTED] Enviada em: quinta-feira, 8 de setembro de 2005 07:45 Para: Tomcat User List Assunto: Tomcat Log4j Log Level Configuration How do I configure Tomcat or Log4J to change the log level output during runtime? Anybody already done this successfully with Tomcat 5.5.9? -- My Blogs http://jojopaderes.blogspot.com Google Talk http://www.google.com/talk (ID: jojo.paderes) "In preparing for battle I have always found that plans are useless, but planning is indispensable." - Eisenhower --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]