Hi is it possible to change the logging levels of log4j without brining down the server ? Do you have any suggestion what i could take a look at or if you have sample code i could look at . we are using jdk 1.4.2 aprpeicate your thoughts -reeve
Well i need to do what you mentioned dynamically. That wont work for me. You must have noticed that each time you make a change to the configuration file, you have to restart your application. This can be a little bit cumbersome. I was wondering if there is a dyanmic way of changing the logging levels without restaring the server .
Using PropertyConfigurator.ConfigureAndWatch() you can enable log4j to watch any changes to the configuration file and apply those changes to the logging at runtime without any restart of the application.