logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gülcü <c...@qos.ch>
Subject Re: Closed appender issue on configuration reload
Date Wed, 24 Sep 2003 14:50:51 GMT
Why is 'RemoteAppender' an appender? If the purpose of 'RemoteAppender' is 
to receive events from remote clients, it should not be an appender. Right?

At 02:12 PM 9/24/2003 +0000, you wrote:
>Hash: SHA1
>I have a minor problem with reloading my log4j configuration.
>I am working with an application which is deployed as a web
>service within Tomcat. There are other applications deployed
>there as well, and all of them need to use a common
>RemoteAppender. There can be only one RemoteAppender, since it
>binds to a TCP port, which is of course exclusive.
>To get that to work required a little bit of code, but
>essentially I used the Servlet approach described in the manual,
>and extended it to get the appender and add it to newly created
>loggers. This works quite nicely until a reload of the web
>service occurs. What happens then is that the Servlet is reloaded,
>causing reload of the configuration, with the loggers already
>this time. This prompts the configurator to remove all existing
>appenders from the loggers, which for some reason closes the
>too. (why is that necessary??). This of course closes the
>thereby rendering it useless to all the services using it.
>So, my first question is, is there any short way around this?
>And the second question is, is this desirable behaviour? It seems to
>me that a reconfiguration should not have adverse side effects, such
>as closing appenders which are not reopened automatically...
>Guðlaugur Stefán Egilsson
>Dimon Software

Ceki Gülcü

      For log4j documentation consider "The complete log4j manual"
      ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp

      import org.apache.Facetime;
      ApacheCon US 2003, 18-21 November http://apachecon.com/

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

View raw message