Hello,<div><br></div><div>I'd like to change Hibernate logging level to WARN.</div><div><br></div><div>As explained on <a href="http://docs.jboss.org/hibernate/core/3.5/reference/en/html/session-configuration.html#configuration-logging">this page</a>, you have to change the Hibernate Log Category "org.hibernate" to "WARN". It works perfectly with log4j when I add "log4j.logger.org.hibernate=WARN" to log4j.properties file.</div>
<div>But when I change slf4j dependency to use logback instead of log4j and when I use the following logback.xml file, it doesn't work, I have Hibernate debug logs. Could you help me, please ?</div><div><br></div><div>
<div><configuration></div><div> <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"></div><div> <layout class="ch.qos.logback.classic.PatternLayout"></div>
<div> <Pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</Pattern></div><div> </layout></div><div> </appender></div><div><br></div><div> <logger name="org.hibernate"></div>
<div> <level value="WARN"/></div><div> </logger></div><div><br></div><div> <root level="DEBUG"></div><div> <appender-ref ref="STDOUT"/></div><div>
</root></div>
<div></configuration></div></div><div><br></div><div>Thanks.</div><div>Olivier</div>