<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-2" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
I have question about ch.qos.logback.classic.Logger#isXXXEnable()
methods implementations, it seems that for FilterReply.NEUTRAL
decision, it simply always return false if effective level is above
DEBUG level.<br>
<br>
public boolean isInfoEnabled() {<br>
FilterReply decision = callTurboFilters(Level.INFO);<br>
if (decision == FilterReply.NEUTRAL) {<br>
<b>return effectiveLevelInt <= Level.DEBUG_INT; // always
false, same for isErrorEnabled()</b><br>
} else if (decision == FilterReply.DENY) {<br>
return false;<br>
} else if (decision == FilterReply.ACCEPT) {<br>
return true;<br>
} else {<br>
throw new IllegalStateException("Unknown FilterReply value: " +
decision);<br>
}<br>
}<br>
<br>
This implementations causes, that configuration below do not print INFO
messages:<br>
<br>
<configuration><br>
<br>
<!--====================================================================<br>
appenders<br>
=====================================================================--><br>
<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] [%c:%line]
%-5level - %msg %n</Pattern><br>
</layout><br>
</appender><br>
<br>
<!--====================================================================<br>
loggers<br>
=====================================================================--><br>
<br>
<logger name="org.apache"><br>
<level value="INFO"/><br>
</logger><br>
<br>
<logger name="org.springframework"><br>
<level value="INFO"/><br>
</logger><br>
<br>
<!--====================================================================<br>
root logger<br>
=====================================================================--><br>
<br>
<root><br>
<level value="INFO" /><br>
<appender-ref ref="STDOUT"/><br>
</root><br>
<br>
</configuration><br>
</body>
</html>