Does changing Log4j's log.properties require a restart for the changes to take effect?
I'm trying to work out an issue in one of our systems and don't have the ability to restart the server process (OC4J in this case).
Does changing Log4j's log.properties require a restart for the changes to take effect?
I'm trying to work out an issue in one of our systems and don't have the ability to restart the server process (OC4J in this case).
Yes, since the configuration is loaded upon log4j startup which is loaded upon classloader startup.
PropertyConfigurator.configureAndWatch(java.lang.String configFilename, long delay)
DOMConfigurator.configureAndWatch(java.lang.String configFilename, long delay)
We can use an appropriate delay (in milliseconds) to watch the config file for changes and reload the log4j properties (or xml) without restarting the server.
I am not sure how OC4J behaves, though.