title: Log4j2 AsyncLogger is always thread wait state
body: <p>I have created a simple Application with the below log configuration </p>
  
  <pre><code>      &lt;appenders&gt;
           &lt;RollingRandomAccessFile  name="SUMMARY_ALL" fileName="./logs/summary.log" 
          filePattern="logs/$${date:yyyy-MM}/summary-%d{yyyy-MM-dd-HH}-%i.log.gz" immediateFlush="false" append="false"&gt;
          &lt;PatternLayout&gt;
              &lt;pattern&gt;%d{ISO8601} [%t] %p %c %L - %m%n&lt;/pattern&gt;
          &lt;/PatternLayout&gt;
          &lt;Policies&gt;
              &lt;TimeBasedTriggeringPolicy interval="6"
                  modulate="true" /&gt;
              &lt;SizeBasedTriggeringPolicy size="10 MB" /&gt;
          &lt;/Policies&gt;
          &lt;/RollingRandomAccessFile&gt;
         &lt;/appenders&gt;
  </code></pre>
  
  <p>Loggers as : </p>
  
  <pre><code>  &lt;loggers&gt;
      &lt;root level="DEBUG" includeLocation="false"&gt;
          &lt;AppenderRef ref="SUMMARY_ALL" /&gt;
      &lt;/root&gt;
  &lt;/loggers&gt;
  </code></pre>
  
  <p>When I run this I always get the AsyncLogger in wait state. Can anyone please help. Attached is the snapshot of the ThreadDump</p>
  
  <p><img src="https://i.stack.imgur.com/QpRoZ.png" alt="enter image description here"></p>