tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 48716] New: Embedded Tomcat JULI aggressively resetting default logging configuration
Date Tue, 09 Feb 2010 22:29:28 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=48716

           Summary: Embedded Tomcat JULI aggressively resetting default
                    logging configuration
           Product: Tomcat 6
           Version: 6.0.24
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: henning.blohm@gmail.com


When using Tomcat embedded in conjunction with default JDK logging, any removal
of a StandardContext instance from the Host container will lead to a reset of
all JDK logging configuration.

This is due to 

StandardContext.stop() 

calling 

WebappLoader.stop() 

calling 

org.apache.juli.logging.LogFactory.release(ClassLoader) 

which in turn calls 

LogManager.getLogManager().reset();

and the fact that, when using JDK logging, LogManager.getLogManager returns the
default log manager rather that JULI's log manager. 

Suggestion: Check whether the log manager is actually JULI's.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message