Howto remove a logger instance at runtime ?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Sylvain_RICHET
Posted On:   Tuesday, March 21, 2006 08:14 AM

Hi,


For the needs of my webApp, i have to reload a Log4j configuration at runtime.



Removing appenders works perfectly (via removeAllAppenders() on Logger object).


But, no way to remove a Logger instance.



I know that this kind of question has been already submitted on the Log4j Apache FAQ (http://logging.apache.org/log4j/docs/faq.html#3.2).



Is there a workaround ?



Thanks in advance

Re: Howto remove a logger instance at runtime ?

Posted By:   ankush_purwar  
Posted On:   Tuesday, March 21, 2006 06:20 PM

Log-4j is an open source code. Look at the code and override the needed functionality and put modified and newly added classes in Log-4j-ext.jar.
About | Sitemap | Contact