title: Log4j2/JPA/Hibernate logging is not working
body: <p>I can't make hibernate log messages with log4j2. It logs only INFO and WARN. On the other side HikariCP works perfectly with this config. Here is the pom.xml:</p>
  
  <pre><code>    ... &lt;dependency&gt;
          &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
          &lt;artifactId&gt;log4j-slf4j-impl&lt;/artifactId&gt;
          &lt;version&gt;2.1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
          &lt;artifactId&gt;log4j-api&lt;/artifactId&gt;
          &lt;version&gt;2.1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
          &lt;artifactId&gt;log4j-core&lt;/artifactId&gt;
          &lt;version&gt;2.1&lt;/version&gt;
      &lt;/dependency&gt; ...
  </code></pre>
  
  <p>log4j2.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Configuration&gt;
      &lt;Appenders&gt;
          &lt;Console name="STDOUT" target="SYSTEM_OUT"&gt;
              &lt;PatternLayout pattern="%d{ABSOLUTE} %5p %c{1}:%L - %m%n"/&gt;
          &lt;/Console&gt;
      &lt;/Appenders&gt;
      &lt;Loggers&gt;
          &lt;!--&lt;Logger name="org.apache.log4j.xml" level="debug"/&gt;--&gt;
          &lt;Root level="info"&gt;
              &lt;AppenderRef ref="STDOUT"/&gt;
          &lt;/Root&gt;
          &lt;Logger name="org.hibernate" level="debug"/&gt;
          &lt;Logger name="org.hibernate.SQL" level="debug"/&gt;
          &lt;Logger name="com.zaxxer.hikari" level="debug" /&gt;
      &lt;/Loggers&gt;
  &lt;/Configuration&gt;
  </code></pre>