dcsimg
Modifying log4j without restarting the server.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Tuesday, February 18, 2003 08:42 AM


I am trying to figure out if there is a way to reload the properties file anytime it changes without restarting the
system. One of our requirements is that the properties file can be changed and the logging will automatically change without restarting the system. I know you can use the PropertyConfigurator's configureAndWatch method, but I don't see how you could put this method in each class that instantiates a logger. It seems like way too much overhead. If anyone knows of a way to do this, I would appreciate it.

Re: Modifying log4j without restarting the server.

Posted By:   Anonymous  
Posted On:   Wednesday, February 19, 2003 08:58 AM

You don't need to call this method in each class. Simply make the call when you start your application, and each time you get a logger, it will reflect the properties you configured.
About | Sitemap | Contact