title: Time based triggering policy in log4j2
body: <p>I am trying to create new log files on an hourly basis. I am using TimeBasedTriggerringPolicy of lo4j2 in RollingFileAppender. Below is the sample xml configuration code i have taken from log4j2 official site.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Configuration status="warn" name="MyApp" packages=""&gt;
     &lt;Appenders&gt;
        &lt;RollingFile name="RollingFile" fileName="logs/app.log" filePattern="logs/$${date:yyyy-MM}/app-%d{yyyy-MM-dd-HH}-%i.log.gz"&gt;
           &lt;PatternLayout&gt;
              &lt;Pattern&gt;%d %p %c{1.} [%t] %m%n&lt;/Pattern&gt;
           &lt;/PatternLayout&gt;
           &lt;Policies&gt;
              **
              &lt;TimeBasedTriggeringPolicy interval="1" modulate="true" /&gt;
              **
              &lt;SizeBasedTriggeringPolicy size="250 MB" /&gt;
           &lt;/Policies&gt;
        &lt;/RollingFile&gt;
     &lt;/Appenders&gt;
     &lt;Loggers&gt;
        &lt;Root level="error"&gt;
           &lt;AppenderRef ref="RollingFile" /&gt;
        &lt;/Root&gt;
     &lt;/Loggers&gt;
  &lt;/Configuration&gt;
  </code></pre>
  
  <p>In the interval attribute I have set 1 which signifies 1 hour.
  But still my file does not roll every 1 hour.</p>
  
  <p>Please help me find any mistake.</p>
  
  <p>Note : I have included beta9 of log4j2 (which is the latest)</p>