title: How to rotate log files based on time rather than size in Log4j?
body: <p>I use Log4j with the <code>RollingFileAppender</code> to create a log rotation based on size.</p>
  
  <p>How can I configure it to log to each file for a certain amount of <em>time</em> before rotating?</p>
  
  <p>For example, so that each log file contains one hour of logs, rotating at the top of each hour? </p>
  
  <p>I configure Log4j programatically in Java using a <code>Properties</code> object (as opposed to a <code>log4j.properties</code> file)</p>