title: Log4j2.xml - Queue size and discardingThreshold
body: <p>how can we specify the queue size and discardingThreshold for Asynchronous appenders in log4j2.xml</p>
  <p>Below is sample snippet from logback.xml.</p>
  <pre><code> &lt;appender name=&quot;appender1&quot; class=&quot;ch.qos.logback.classic.AsyncAppender&quot;&gt;
       &lt;queueSize&gt;500&lt;/queueSize&gt;
       &lt;discardingThreshold&gt;0&lt;/discardingThreshold&gt;
       &lt;appender-ref ref=&quot;one&quot; /&gt;
      &lt;/appender&gt;
  </code></pre>
  <p>I need to implement similar functionality in log4j2.xml</p>