Thanks for your advice <meta charset="utf-8">Ceki.<br><br><div>I've found why it doesn't work. It was just a bug between my chair and my computer... :) My logback.xml file wasn't in the classpath.</div><div><br>
</div><div>Thanks !</div><div>Olivier</div><div><br></div><div><br><div class="gmail_quote">2011/1/23 Ceki Gülcü <span dir="ltr"><<a href="mailto:ceki@qos.ch">ceki@qos.ch</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Olivier,<br>
<br>
Adding a status listener is usually a good idea:<br>
<br>
<configuration><br>
<statusListener<br>
class="ch.qos.logback.core.status.OnConsoleStatusListener" /><br>
...<br>
</configuration><br>
<br>
Then see what logback is telling you.<br>
HTH,<br>
--<br>
Ceki<div class="im"><br>
<br>
On 23/01/2011 10:47 AM, Olivier Catteau wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Hello,<br>
<br>
I'd like to change Hibernate logging level to WARN.<br>
<br>
As explained on this page<br></div>
<<a href="http://docs.jboss.org/hibernate/core/3.5/reference/en/html/session-configuration.html#configuration-logging" target="_blank">http://docs.jboss.org/hibernate/core/3.5/reference/en/html/session-configuration.html#configuration-logging</a>>,<div>
<div></div><div class="h5"><br>
you have to change the Hibernate Log Category "org.hibernate" to "WARN".<br>
It works perfectly with log4j when I add<br>
"log4j.logger.org.hibernate=WARN" to log4j.properties file.<br>
But when I change slf4j dependency to use logback instead of log4j and<br>
when I use the following logback.xml file, it doesn't work, I have<br>
Hibernate debug logs. Could you help me, please ?<br>
<br>
<configuration><br>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"><br>
<layout class="ch.qos.logback.classic.PatternLayout"><br>
<Pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</Pattern><br>
</layout><br>
</appender><br>
<br>
<logger name="org.hibernate"><br>
<level value="WARN"/><br>
</logger><br>
<br>
<root level="DEBUG"><br>
<appender-ref ref="STDOUT"/><br>
</root><br>
</configuration><br>
<br>
Thanks.<br>
Olivier<br>
<br>
<br>
<br></div></div>
_______________________________________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch" target="_blank">Logback-user@qos.ch</a><br>
<a href="http://qos.ch/mailman/listinfo/logback-user" target="_blank">http://qos.ch/mailman/listinfo/logback-user</a><br>
</blockquote>
<br>
_______________________________________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch" target="_blank">Logback-user@qos.ch</a><br>
<a href="http://qos.ch/mailman/listinfo/logback-user" target="_blank">http://qos.ch/mailman/listinfo/logback-user</a><br>
</blockquote></div><br></div>