logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 9750] New: - Using AsynchAppender in logging configuration prevents virtual machine from exiting
Date Mon, 10 Jun 2002 17:38:10 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=9750>.
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=9750

Using AsynchAppender in logging configuration prevents virtual machine from exiting

           Summary: Using AsynchAppender in logging configuration prevents
                    virtual machine from exiting
           Product: Log4j
           Version: 1.2
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Appender
        AssignedTo: log4j-dev@jakarta.apache.org
        ReportedBy: sreilly@point2.com


I am using log4j to provide logging for a tomcat web application.
I am initializing log4j as described in 
http://jakarta.apache.org/log4j/docs/manual.html :

I am placing log4j.jar in WEB-INF/lib
I am placing log4jconfig.xml in WEB-INF/classes
and I am specifing the system property log4j.configuration=log4jconfig.xml
when starting the servlet container.

Normally I can start tomcat, perform a few simple operations that create log 
entries, and shutdown tomcat properly (remote connection triggers process end).

However, when I use a configuration that includes an AsynchAppender, different 
behaviour occurs.  Tomcat starts as normal, the program progress and log 
entries happen as normal, but when tomcat is shut down, the virtual machine 
does not end.

I have been able to reproduce this problem with a very simple test case, which 
I will attach shortly.

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


Mime
View raw message