title: Log4J 1.2 PropertyConfigurator -> Log4J2
body: <p>Currently, our application uses Log4J 1.2 and configures it using either</p>
  
  <pre><code>File file = ...
  PropertyConfigurator.configure(file.getAbsolutePath());
  </code></pre>
  
  <p>or</p>
  
  <pre><code>URL url = ...
  PropertyConfigurator.configure(url);
  </code></pre>
  
  <p>I know that the property file format has changed from 1.2 to 2, but what would be a similar way to configure Log4J 2 using a property file at an arbitrary file or URL?</p>