title: How to log to a file with org.apache.commons.logging?
body: <p>This may be obvious, but I have been looking for a simple example of using <code>org.apache.commons.logging</code> to log to a specific file (i.e. <code>/path/to/my-log.txt</code>)</p>
  
  <pre><code>public class MyClass {
  
      static Log log = LogFactory.getLog(MyClass.class);
  
      public static void main(String[] args) {
  
          // What to do here to get log to output to a file???
  
          log.info("I want to appear in a specific log file")
      }
  
  }
  </code></pre>