logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Womack <mwom...@bevocal.com>
Subject RE: [CODE] Resetting Loggers during Configuration
Date Wed, 20 Mar 2002 01:07:14 GMT

Besides not locking up the entire hierarchy during the reset, I am also
trying to avoid having log messages "lost" while the reset and configuration
is being applied.

For example, let's say have the same logger referenced in the new
configuration settings, with the same settings as current settings.  And the
code has been implemented to use the current resetConfiguration() method,
called presumeably at the beginning of the parse() method.  Then isn't it
possible that logging messages will be "lost" in the time between the call
to resetConfiguration() and the time when the (same) Logger settings are

By resetting only the Loggers that have not been referenced by the new
configuration, at the end of configuration process, continuity is
maintained, and no messages are lost.  Does that make sense or is it too
much tweaking?  Is there another way I should approach this?


-----Original Message-----
From: Ceki Gülcü [mailto:ceki@qos.ch]
Sent: Tuesday, March 19, 2002 4:21 PM
To: Log4J Developers List
Subject: Re: [CODE] Resetting Loggers during Configuration

Hi Mark,

Thanks for your contribution.

Adding a new configuration directive such that a configurator resets the 
configuration is a good idea. Doing all sorts of the tricks in order to 
optimize the
reset operation is not. Don't tune what you don't need to tune. Regards,

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

View raw message