title: Log4j2 saving file (using RollingFile appender)
body: <p>I am trying log4j2 to create log file to the system I am developing right, I have followed the instruction on their <a href="http://logging.apache.org/log4j/2.x/manual/configuration.html" rel="nofollow">site</a> and there is no error occurred when I run it, but the log is not saved on where I set it (ex. "D:\logs\app.log"). </p>
  
  <p><strong>Here is My log4j.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;configuration status="OFF"&gt;
    &lt;appenders&gt;
      &lt;RollingFile name="MyRollingFile" fileName="D:/logs/app.log"
                   filePattern="logs/$${date:yyyy-MM}/app-%d{MM-dd-yyyy}-%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 /&gt;
          &lt;SizeBasedTriggeringPolicy size="250 MB"/&gt;
        &lt;/Policies&gt;
        &lt;DefaultRolloverStrategy max="20"/&gt;
      &lt;/RollingFile&gt;
      &lt;Console name="Console" target="SYSTEM_OUT"&gt;
        &lt;PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/&gt;
      &lt;/Console&gt;
    &lt;/appenders&gt;
    &lt;loggers&gt;
      &lt;logger name="Log_RollingFile" level="TRACE" additivity="false"&gt;
        &lt;appender-ref ref="MyRollingFile"/&gt;
      &lt;/logger&gt;
      &lt;root level="ERROR"&gt;
        &lt;appender-ref ref="Console"/&gt;
      &lt;/root&gt;
    &lt;/loggers&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p><strong>I tried to :</strong></p>
  
  <ul>
  <li>delete app.log to see if my configuration (D:\logs\app.log) works. When I run the application it creates app.log so I think it means that it sees the configuration and the only thing is it is NOT SAVING the log.info that I did in java application</li>
  <li>Change root level to "TRACE", and it prints the log.info.</li>
  </ul>
  
  <p><em><strong>[EDIT:]</em></strong></p>
  
  <p><strong>I have also these libraries on my classpath</strong></p>
  
  <ul>
  <li>log4j-api-2.0-beta3.jar</li>
  <li>log4j-core-2.0-beta3.jar</li>
  </ul>
  
  <p>Am I missing something on RollingFile configuration or a library (maybe)? </p>
  
  <p>Thanks in advance. </p>