title: How to implement "configureAndWatch" in log4j2
body: <p>In <code>log4j</code>, there is a feature <code>configureAndWatch</code> (as mentioned below) where without application server restart, log threshold level can be modified with default delay.</p>
  
  <pre><code>org.apache.log4j.xml.DOMConfigurator.configureAndWatch(log4j.xml path);
  </code></pre>
  
  <p>Is this possible in <code>log4j2</code> as well ? If yes, then how can this be achieved ?</p>
  
  <p>Also, below are lines of code for setting up and cleaning up <code>log4j</code> setup.</p>
  
  <pre><code>BasicConfigurator.configure()
  BasicConfigurator.resetConfiguration()
  </code></pre>
  
  <p>How can this be achieved in <code>log4j2</code> ?  Please help. Thanks.</p>