velocity-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 9039] New: - SimpleLog4JLogSystem closes appenders
Date Mon, 13 May 2002 15:22:42 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9039>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9039

SimpleLog4JLogSystem closes appenders

           Summary: SimpleLog4JLogSystem closes appenders
           Product: Velocity
           Version: 1.3-rc1
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Source
        AssignedTo: velocity-dev@jakarta.apache.org
        ReportedBy: hugg@pobox.com


The SimpleLog4JLogSystem class closes all appenders in its shutdown() method, 
even if the appenders were not created by Velocity. This can cause problems if 
the logging system is initialized in your servlet, and if Velocity instances 
are finalized while other instances are in use -- since Log4J Categories are 
static :P

What should probably happen is a flag should be set so that appenders are only 
closed if they were created by the SimpleLog4JLogSystem class, and/or when all 
Velocity instances are GC'ed.

--
To unsubscribe, e-mail:   <mailto:velocity-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:velocity-dev-help@jakarta.apache.org>


Mime
View raw message