title: How to disable hibernate 4 output with log4j2?
body: <p>I'm having the follwoing log4j2.xml configuration. I saved it in the the root of the resource folder.</p>
  
  <p>I don't get to manage to get rid of the INFO stdout hibernate output. e.g.</p>
  
  <pre><code>06:17:01,835 INFO  [stdout] (ServerService Thread Pool -- 52)     insert into hibernate_sequence values ( 1 )
  </code></pre>
  
  <p>What is wrong with my configuration and/or what is missing?</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Configuration status="WARN" monitorInterval="30"&gt;
      &lt;Appenders&gt;
          &lt;Console name="Console" target="SYSTEM_OUT"&gt;
              &lt;PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n" /&gt;
          &lt;/Console&gt;
      &lt;/Appenders&gt;
      &lt;Loggers&gt;
          &lt;Logger name="com.mycode" level="trace" additivity="false"&gt;
              &lt;AppenderRef ref="Console"/&gt;
          &lt;/Logger&gt;
          &lt;Logger name="org.hibernate" level="warn" additivity="false"&gt;
              &lt;AppenderRef ref="Console"/&gt;
          &lt;/Logger&gt;
          &lt;Root level="warn"&gt;
              &lt;AppenderRef ref="Console" /&gt;
          &lt;/Root&gt;
      &lt;/Loggers&gt;
  &lt;/Configuration&gt;
  </code></pre>
  
  <p>I have these libraries attached to my project.</p>
  
  <pre><code>        &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.0.2&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.0.2&lt;/version&gt;
          &lt;/dependency&gt;
  </code></pre>
  
  <p>And I'm using this API version of JPA/Hibernate 4.</p>
  
  <pre><code>        &lt;dependency&gt;
              &lt;groupId&gt;org.hibernate.javax.persistence&lt;/groupId&gt;
              &lt;artifactId&gt;hibernate-jpa-2.0-api&lt;/artifactId&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
  </code></pre>