|
When using Hibernate 4 with Log4J2, all messages are printed on CONSOLE instead of using Log4J2.
Upgrading the pom.xml with:
<dependency>
<groupId>org.jboss.logging</groupId>
<artifactId>jboss-logging</artifactId>
<version>3.2.1.Final</version>
</dependency>
Fixes the issue. See https://issues.jboss.org/browse/JBLOGGING-107 . It worths upgrading Hibernate to depend on 3.2.0 (minimum) or 3.2.1 (latest).
|