I figured it out.

    <logger name="org.hibernate">
      <level value="error"/>
      <appender-ref ref="FILE"/>
  </logger>

   Quoting Joe White <[email protected]>:



   I'm using Hibernate with logback, and it appears that Hibernate is
stuck in DEBUG logging mode. The documentation states that it works
(Hibernate that is) with logback, but I don't know how to turn it to
error only.

   Here is my logback.xml file.

   <?xml version="1.0" encoding="UTF-8"?>
<configuration>

  <appender name="FILE" class="ch.qos.logback.core.FileAppender">
    <file>myApp.log</file>

    <layout class="ch.qos.logback.classic.PatternLayout">
      <Pattern>%date %level [%thread] %logger{10} [%file:%line]   
%msg%n</Pattern>
    </layout>
  </appender>

  <appender name="STDOUT"
    class="ch.qos.logback.core.ConsoleAppender">
    <layout class="ch.qos.logback.classic.PatternLayout">
      <Pattern>%msg%n</Pattern>
    </layout>
  </appender>

  <root level="info">
    <appender-ref ref="FILE" />
    <appender-ref ref="STDOUT" />
  </root>
</configuration>

  --
"We are what we repeatedly do. Excellence, then, is not an act, but a habit."
Aristotle

Reply via email to