Reloading Log4j configuration at runtime


/ Published in: Java
Save to your folder(s)

This will check the log4j.properties file for any modification at every 100 milliseconds.


Copy this code and paste it in your HTML
  1. static
  2. {
  3. PropertyConfigurator.configureAndWatch("log4j.properties", 100);
  4. }

Report this snippet


Comments


You need to login to view comments.