title: How does RollingFileAppender work with log4j2?
body: <p>I'm use to <code>RollingFileAppender</code> on normal log4j. Now I'm switching to <code>log4j2</code>, and cannot get the appender to work.</p>
  
  <p>The <code>File</code> appender below works as expected. But the logging file for <code>RollingFile</code> is never created. Why?</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Configuration&gt;
      &lt;Appenders&gt;
          &lt;File name="FILE" fileName="c:/logs.log"&gt;
              &lt;PatternLayout pattern="%d %p %c: %m%n" /&gt;
          &lt;/File&gt;
  
          &lt;RollingFile name="ROLLING" fileName="c:/logsroll.log"&gt;
              &lt;PatternLayout pattern="%d %p %c: %m%n"/&gt;
              &lt;Policies&gt;
                  &lt;TimeBasedTriggeringPolicy /&gt;
                  &lt;SizeBasedTriggeringPolicy size="0.001 MB"/&gt;
              &lt;/Policies&gt;
              &lt;DefaultRolloverStrategy max="10"/&gt;
          &lt;/RollingFile&gt;
      &lt;/Appenders&gt;
      &lt;Loggers&gt;
          &lt;Root level="info"&gt;
              &lt;AppenderRef ref="FILE" /&gt;
              &lt;AppenderRef ref="ROLLING" /&gt;
          &lt;/Root&gt;
      &lt;/Loggers&gt;
  &lt;/Configuration&gt;
  </code></pre>