logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe White <jwh...@asidejob.com>
Subject Hibernate and Logback
Date Sat, 11 Apr 2009 05:43:40 GMT


   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>

Mime
  • Unnamed multipart/alternative (inline, 7-Bit, 0 bytes)
View raw message