Logback: What would cause DEBUG - WARN to append to file but NOT ERROR?

Posted by Zombies on Stack Overflow See other posts from Stack Overflow or by Zombies
Published on 2010-04-22T08:11:42Z Indexed on 2010/04/22 8:13 UTC
Read the original article Hit count: 286

Filed under:
|
|

I am running a Java program from Eclipe, and I am using the logback console plugin. I can see the ERROR level statements being appended to console (as well as all of the others). But for some reason my file, which is correctly recieving new DEBUG-WARN statements, is NOT recieving the ERROR level ones. Here is my logback.xml:

<consolePlugin />

  <appender name="FILE" class="ch.qos.logback.core.FileAppender">
    <file>logs/main.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>

  <logger name="WebsiteChecker">
    <appender-ref ref="FILE" />
  </logger>

  <root>
    <level value="debug" />
    <!--<appender-ref ref="STDOUT" />-->
    <appender-ref ref="FILE" />
  </root>
</configuration>

© Stack Overflow or respective owner

Related posts about logback

Related posts about java