Ceki,

I see in the code comments for shutdown() that it closes the appenders so
that pending log message will not be lost, which is good.  But what about
the time between the return from the resetConfiguration() method and the
time the logger would reconfigured in the configurator?  Couldn't logging
messages be lost in this in between time?  I must be missing something.

And yes, whatever implementation is decided as best, I will add the behavior
in the way you have mentioned.  I'll submit something after 1.2 is released.
Is there a time table for the 1.2 release?

thanks,
-Mark

-----Original Message-----
From: Ceki G�lc� [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 1:45 AM
To: Log4J Developers List
Subject: RE: [CODE] Resetting Loggers during Configuration



Mark,

I see the question. Although not documented properly, the 
Hierarchy.resetConfiguration
method performs a *shutdown* during the reset. I hope this clarifies the
issue.
If it does not just let me know and I'll try to do better. Regards, Ceki

ps: The approach I would suggest is simply to add a "reset" attribute in 
the <log4j:configuration>
element such that if present the configurator would call 
Hierarchy.resetConfiguration. In a similar
vein, a log4j.reset key should be added to PropertyConfigurator.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to