title: Log4j2 DefaultRolloverStrategy Configuration does not delete old logs
body: <p>I'm using log4j2 for my app logs, I'm using XML and the configuration below is for the logs, it moves the logs everyday to the old folder, but it's not removing then    </p>
  
  <pre><code>&lt;RollingFile name="fileappenderMAIL" fileName="/home/server/logs/EMAIL/SM_Mail.log"
                           filePattern="/home/server/logs/old/$${date:yyyy-MM}/EMAIL/SM_Mail-%d{dd-MM-yyyy}-%i.log.gz" immediateFlush="false"&gt;
                  &lt;PatternLayout pattern="%d %p %C{1.} [%t] %m%n" /&gt;
                  &lt;Policies&gt;
                      &lt;TimeBasedTriggeringPolicy /&gt;
                      &lt;SizeBasedTriggeringPolicy size="10 MB"/&gt;
                  &lt;/Policies&gt;
                  &lt;DefaultRolloverStrategy &gt;
                      &lt;Delete basePath="/home/server/logs/old/" maxDepth="3"&gt;
                          &lt;IfFileName glob="*/EMAIL/SM_Mail-??-??-????-*.log"&gt;
                              &lt;IfAny&gt;
                                  &lt;IfAccumulatedFileSize exceeds="10 KB" /&gt;
                                  &lt;IfAccumulatedFileCount exceeds="30" /&gt;
                              &lt;/IfAny&gt;
                          &lt;/IfFileName&gt;
                      &lt;/Delete&gt;
                  &lt;/DefaultRolloverStrategy&gt;
              &lt;/RollingFile&gt;
  </code></pre>
  
  <p>It's supposed to be removing the old elements, have anyone any idea what I'm missing or doing wrong?</p>
  
  <p>Dunno if it's useful but I'm deploying in Wildfly 10 with Java 7 and Log4j version 2.8.1, also I'm using com.lmax.disruptor so as to use AsyncLoggers</p>
  
  <p>Thanks</p>