2

I am using eclipselink with tomcat and I have the logging level to FINE. Please guide me how can I change the log level dynamically without restarting tomcat. I use log4j and is there a way to use log4j config to change eclipselink log levels.

user3733071
  • 31
  • 1
  • 4

1 Answers1

0

You can change the system properties dynamically :

Properties systemProperties = System.getProperties();
systemProperties.setProperty("eclipselink.logging.level", FINE);
systemProperties.setProperty("eclipselink.logging.parameters", true);