Logging to CONSOLE stops working when the context in Tomcat is restarted. I am calling LogManager.shutdown() during servlet shutdown. I am using Tomcat 5.5.4 and jdk1.5.0. Here are the props: log4j.rootLogger=INFO, CONSOLE # CONSOLE is set to be a ConsoleAppender using a PatternLayout. log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender log4j.appender.CONSOLE.Threshold=DEBUG log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout log4j.appender.CONSOLE.layout.ConversionPattern=%d{HH:mm:ss.SSS}-%m%n Thanks for your help
Where do you have log4j.jar? I suspect you have only one copy in Tomcat's common/lib directory with log4j.properties in common/classes. I also suspect that you aren't using a repository selector. If this is true, then what you see is not a bug, it is expected behavior. Don't call LogManager.shutdown() if you aren't logging to a separate logger repository than the default. Otherwise you will shut down logging of the default logger repository which the server is using. Jake
Possible duplicate with 31506. Please confirm that bug still occurs with 1.2.12 release candidate or later.
bug #31506 is an Ant bug. I can't imagine this is a duplicate of that :-) Can you double check the bug number and repost? Jake
Sorry, Bug 31056. Might have to go get tested for late-onset dyslexia, I've transposed digits on several bugs in CVS log message.
*** This bug has been marked as a duplicate of 31506 ***
*** This bug has been marked as a duplicate of 31056 ***