> From: li gang [mailto:[email protected]] > Subject: Is re-start of the server required for activation of the log4j > settings? > I changed the log4J level. > Do I have to restart the server to activate the new settings?
Not if you use a configurator that uses an automatic reloading mechanism (such as org.apache.log4j.helpers.FileWatchdog): e.g. PropertyConfigurator.configureAndWatch() or DOMConfigurator. configureAndWatch(). It's quite easy to roll your own too - just make sure your Appenders can sensibly cope with activateOptions() calls. In general terms I have some suggestions for anyone developing software that is making fuller use of log4J: - 1) Read the documentation 2) Read the source 3) Step through the source with your favourite debugger to see what it is doing 4) Write unit tests to verify that your assumptions are correct 5) Then mail the list if all else fails (some choose to do this as their first step :) ) Regards, Michael Erskine. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
