Is there a way to get log4j to automatically reload a configuration file if it changes?
Yes. Both the DOMConfigurator and the PropertyConfigurator support automatic reloading through the configureAndWatch method. See the API documentation for more details. Because the configureAndWatch launches a separate wathdog thread, and because there is no way to stop this thread in log4j 1.2, the configureAndWatch method is unsafe for use in J2EE envrironments where applications are recycled.
Related Questions
- Does NaviPlan save the changes to the client file automatically and what happens to the work when NaviPlan is closed?
- Does NaviPlan save the changes to the client file automatically and what happens to the work when NaviPlan is closed?
- Is there a way to get log4net to automatically reload a configuration file if it changes?
- Is there a way to get log4net to automatically reload a configuration file if it changes?
- Is there a way to get log4j to automatically reload a configuration file if it changes?
- Does NaviPlan save changes to the client file automatically?