title: Turn off log4j2 startup debug logging
body: <p>How do I turn off the debug logging that log4j2 spits out when it initialises itself?</p>
  <p>These sort of things:</p>
  <p>2014-10-22 11:16:45,505 DEBUG Building Plugin[name=filter, class=org.apache.logging.log4j.core.filter.ThresholdFilter]. Searching for builder factory method...
  2014-10-22 11:16:45,505 DEBUG No builder factory method found in class org.apache.logging.log4j.core.filter.ThresholdFilter. Going to try finding a factory method instead.
  2014-10-22 11:16:45,505 DEBUG Still building Plugin[name=filter, class=org.apache.logging.log4j.core.filter.ThresholdFilter]. Searching for factory method...</p>
  <p>I'm calling log4j2 from a simple Java application via eclipse. By that I mean:
  public static void main(String[] args) { ... }</p>
  <p>The loggers portion of the xml config is:</p>
  <pre class="lang-xml prettyprint-override"><code> &lt;Loggers&gt;
      &lt;Root level=&quot;trace&quot;/&gt;
      
      &lt;logger name=&quot;audit&quot;&gt;
          &lt;appender-ref ref=&quot;AUDITOUT&quot;/&gt;
          &lt;appender-ref ref=&quot;DEBUGOUT&quot;/&gt;
          
          &lt;appender-ref ref=&quot;ORACLEOUTINFO&quot;/&gt;
          &lt;appender-ref ref=&quot;ORACLEOUTWARN&quot;/&gt;
          &lt;appender-ref ref=&quot;ORACLEOUTERROR&quot;/&gt;
          &lt;appender-ref ref=&quot;ORACLEOUTFATAL&quot;/&gt;
      &lt;/logger&gt;
      
      &lt;logger name=&quot;org.apache.log4j&quot;&gt;
          &lt;appender-ref ref=&quot;FILEOUT&quot;/&gt;
          &lt;appender-ref ref=&quot;STDOUT&quot;/&gt;
          
          &lt;appender-ref ref=&quot;ORACLEOUTWARN&quot;/&gt;
          &lt;appender-ref ref=&quot;ORACLEOUTERROR&quot;/&gt;
          &lt;appender-ref ref=&quot;ORACLEOUTFATAL&quot;/&gt;
      &lt;/logger&gt;
      
      &lt;logger name=&quot;jh.Runner2&quot;&gt;
          &lt;appender-ref ref=&quot;DEBUGOUT&quot;/&gt;
          &lt;appender-ref ref=&quot;STDOUT&quot;/&gt;
          
          &lt;appender-ref ref=&quot;ORACLEOUTTRACE&quot;/&gt;
          &lt;appender-ref ref=&quot;ORACLEOUTDEBUG&quot;/&gt;
          &lt;appender-ref ref=&quot;ORACLEOUTINFO&quot;/&gt;
          &lt;appender-ref ref=&quot;ORACLEOUTWARN&quot;/&gt;
          &lt;appender-ref ref=&quot;ORACLEOUTERROR&quot;/&gt;
          &lt;appender-ref ref=&quot;ORACLEOUTFATAL&quot;/&gt;
      &lt;/logger&gt;
   &lt;/Loggers&gt;
  </code></pre>
  <p>Appenders:</p>
  <pre class="lang-xml prettyprint-override"><code> &lt;Appenders&gt;
      &lt;Console name=&quot;STDOUT&quot;&gt;
          &lt;ThresholdFilter level=&quot;TRACE&quot; onMatch=&quot;ACCEPT&quot; onMismatch=&quot;DENY&quot;/&gt;
          &lt;PatternLayout pattern=&quot;%d %p [%t] - %m%n&quot;/&gt;
      &lt;/Console&gt;
      
      &lt;RollingFile name=&quot;FILEOUT&quot; fileName=&quot;${log-path}/mainlog2.log&quot; filePattern=&quot;${log-path}/mainlog-%d{yyyy-MM-dd}.log&quot;&gt;
          &lt;ThresholdFilter level=&quot;INFO&quot; onMatch=&quot;ACCEPT&quot; onMismatch=&quot;DENY&quot;/&gt;
          &lt;PatternLayout pattern=&quot;%d %p [%t] - %m%n&quot;/&gt;
          &lt;Policies&gt;
              &lt;TimeBasedTriggeringPolicy interval=&quot;1&quot; modulate=&quot;true&quot;/&gt;
          &lt;/Policies&gt;
      &lt;/RollingFile&gt;
      
      &lt;RollingFile name=&quot;DEBUGOUT&quot; fileName=&quot;${log-path}/debuglog2.log&quot; filePattern=&quot;${log-path}/debuglog-%d{yyyy-MM-dd}.log&quot;&gt;
          &lt;ThresholdFilter level=&quot;DEBUG&quot; onMatch=&quot;ACCEPT&quot; onMismatch=&quot;DENY&quot;/&gt;
          &lt;PatternLayout pattern=&quot;%d %p %C [%t] - %m%n&quot;/&gt;
          &lt;Policies&gt;
              &lt;TimeBasedTriggeringPolicy interval=&quot;1&quot; modulate=&quot;true&quot;/&gt;
          &lt;/Policies&gt;
      &lt;/RollingFile&gt;
      
      &lt;RollingFile name=&quot;AUDITOUT&quot; fileName=&quot;${log-path}/audit2.log&quot; filePattern=&quot;${log-path}/auditlog-%d{yyyy-MM-dd}.log&quot;&gt;
          &lt;ThresholdFilter level=&quot;INFO&quot; onMatch=&quot;ACCEPT&quot; onMismatch=&quot;DENY&quot;/&gt;
          &lt;PatternLayout pattern=&quot;%d %p [%t] - %m%n&quot;/&gt;
          &lt;Policies&gt;
              &lt;TimeBasedTriggeringPolicy interval=&quot;1&quot; modulate=&quot;true&quot;/&gt;
          &lt;/Policies&gt;
      &lt;/RollingFile&gt;
      
      &lt;JDBC name=&quot;ORACLEOUTTRACE&quot; tableName=&quot;J0T_EVENT&quot;&gt;
          &lt;Filters&gt;
              &lt;ThresholdFilter level=&quot;DEBUG&quot; onMatch=&quot;DENY&quot; onMismatch=&quot;NEUTRAL&quot;/&gt;
              &lt;ThresholdFilter level=&quot;TRACE&quot; onMatch=&quot;ACCEPT&quot; onMismatch=&quot;DENY&quot;/&gt;
          &lt;/Filters&gt;
          &lt;ConnectionFactory class=&quot;com.xxxxxxxxx.db.LoggingDBConnectionFactory&quot; method=&quot;getDatabaseConnection&quot; /&gt;
          &lt;Column name=&quot;EVENT_ID&quot; literal=&quot;${nextEventID}&quot;/&gt;
          &lt;Column name=&quot;APP_NM&quot; literal=&quot;${appName}&quot;/&gt;
          &lt;Column name=&quot;CREATE_DT&quot; isEventTimestamp=&quot;true&quot;/&gt;
          &lt;Column name=&quot;EVENT_TYPE_ID&quot; literal=&quot;1&quot;/&gt;
          &lt;Column name=&quot;EVENT_TXT&quot; pattern=&quot;${eventTxtPattern}&quot; isUnicode=&quot;false&quot;/&gt;
      &lt;/JDBC&gt;
  </code></pre>
  <p>etc.</p>