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

RSS Icon Subscribe to comments

You need to login to post a comment.