You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by bu...@apache.org on 2002/05/13 17:22:42 UTC
DO NOT REPLY [Bug 9039] New: -
SimpleLog4JLogSystem closes appenders
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>