title: log4j2 No appenders found for 1 logger
body: <p>I'm having trouble configuring my log4j2.xml file to include hibernate logging.</p>
  
  <p>Here is my xml file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Configuration status="TRACE"&gt;
      &lt;Properties&gt;
          &lt;Property name="logDir" value="${env:MY_APP}/logs"/&gt;
      &lt;/Properties&gt;
      &lt;Appenders&gt;
          &lt;RollingFile name="MY_APP" fileName="${logDir}/my_app.log" bufferedIO="true" filePattern="${logDir}/my_app-%d{yyyy-MM-dd}-%i.log.gz"&gt;
              &lt;PatternLayout pattern="[%t] %d %-5p %x %m%n"/&gt;
              &lt;Policies&gt;
                  &lt;OnStartupTriggeringPolicy/&gt;
                  &lt;TimeBasedTriggeringPolicy/&gt;
              &lt;/Policies&gt;
              &lt;DefaultRolloverStrategy&gt;
                  &lt;Delete basePath="${logDir}" maxDepth="1"&gt;
                      &lt;IfFileName glob="my_app-*.log.gz" /&gt;
                      &lt;IfLastModified age="31d" /&gt;
                  &lt;/Delete&gt;
              &lt;/DefaultRolloverStrategy&gt;
           &lt;/RollingFile&gt;
       &lt;/Appenders&gt;
       &lt;Loggers&gt;
           &lt;Root level="trace"&gt;
               &lt;AppenderRef ref="MY_APP" level="debug"/&gt;
           &lt;/Root&gt;
           &lt;Logger name="com.company" level="info"/&gt;
           &lt;Logger name="com.companyName" level="info"/&gt;
           &lt;Logger name="com.companyName.myApp" level="debug"/&gt;
           &lt;Logger name="org.hibernate" level="info"/&gt;
      &lt;/Loggers&gt;
  </code></pre>
  
  <p></p>
  
  <p>And on startup of my jar i get the following printed to the console:</p>
  
  <pre><code>log4j:WARN No appenders could be found for logger(org.hibernate.type.BasicTypeRegistry).
  log4j:WARN Please initialize the log4j system properly.
  log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
  </code></pre>
  
  <p>I seem to get logs from my application into my RollingFile but i can't understand why this hibernate logger isn't using the same appender.</p>
  
  <p>Any help muchly appreciated!</p>