Bug 32906 - Logging to Console stops working when context restarts
Summary: Logging to Console stops working when context restarts
Status: RESOLVED DUPLICATE of bug 31056
Alias: None
Product: Log4j - Now in Jira
Classification: Unclassified
Component: Appender (show other bugs)
Version: 1.2
Hardware: PC Windows 2000
: P2 normal
Target Milestone: ---
Assignee: log4j-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-31 22:15 UTC by Wenjun
Modified: 2007-08-22 15:44 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wenjun 2004-12-31 22:15:40 UTC
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
Comment 1 Jacob Kjome 2004-12-31 22:50:05 UTC
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

Comment 2 Curt Arnold 2005-08-22 01:07:40 UTC
Possible duplicate with 31506.  Please confirm that bug still occurs with 1.2.12 release candidate or later.
Comment 3 Jacob Kjome 2005-08-22 05:13:55 UTC
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
Comment 4 Curt Arnold 2005-08-22 06:54:33 UTC
Sorry, Bug 31056.

Might have to go get tested for late-onset dyslexia, I've transposed digits on several bugs in CVS log 
message.
Comment 5 Curt Arnold 2007-08-22 15:42:52 UTC

*** This bug has been marked as a duplicate of 31506 ***
Comment 6 Curt Arnold 2007-08-22 15:44:26 UTC

*** This bug has been marked as a duplicate of 31056 ***