You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Will Glass-Husain (JIRA)" <ji...@apache.org> on 2005/09/18 23:18:54 UTC

[jira] Updated: (VELOCITY-78) SimpleLog4JLogSystem closes appenders

     [ http://issues.apache.org/jira/browse/VELOCITY-78?page=all ]

Will Glass-Husain updated VELOCITY-78:
--------------------------------------

    Bugzilla Id:   (was: 9039)
    Fix Version: 1.5
    Description: 
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.

  was:
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.

    Environment: 
Operating System: other
Platform: All

  was:
Operating System: other
Platform: All

      Assign To:     (was: Velocity-Dev List)

> SimpleLog4JLogSystem closes appenders
> -------------------------------------
>
>          Key: VELOCITY-78
>          URL: http://issues.apache.org/jira/browse/VELOCITY-78
>      Project: Velocity
>         Type: Bug
>   Components: Source
>     Versions: 1.3-rc1
>  Environment: Operating System: other
> Platform: All
>     Reporter: Steven Hugg
>      Fix For: 1.5

>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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