If I make a change to a Log4j configuration file, do I have to restart my application for the changes to take affect, or does Log4j notice the changes and reconfigure itself?
Does it do this under some circumstances and not others?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use above method to reflect changes at log4j config file , if you prefer xml .. If you prefer propery file , you can use
PropertConfigurator.configureAndWatchmethod.