<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 10.07.2009, at 18:03, Neale Upstone wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"> <div> <div><span class="560165915-10072009"><font face="Arial" size="2">Hi,</font></span></div> <div><span class="560165915-10072009"><font face="Arial" size="2"></font></span> </div> <div><span class="560165915-10072009"><font face="Arial" size="2">I've been trying the examples at <a href="http://logback.qos.ch/manual/configuration.html">http://logback.qos.ch/manual/configuration.html</a> and the level attribute is always ignored.</font></span></div> <div><span class="560165915-10072009"><font face="Arial" size="2"></font></span> </div> <div><span class="560165915-10072009"><font face="Arial" size="2">i.e. the following should ensure that I only get error messages logged:</font></span></div> <div><span class="560165915-10072009"></span> </div> <div><span class="560165915-10072009"><configuration><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] %-5level %logger{36} - %msg%n</Pattern><br> </layout><br> </appender><br><br> <root level="error"><br> <appender-ref ref="STDOUT" /><br> </root><br></configuration></span></div> <div><span class="560165915-10072009"></span> </div> <div><span class="560165915-10072009"><font face="Arial" size="2">This is quite frustrating, especially as there is no DTD (which would also provide documentation and the ability to edit config files confidently in an XML editor, as is simple with Spring configs).</font></span></div> <div><span class="560165915-10072009"><font face="Arial" size="2"></font></span> </div> <div><span class="560165915-10072009"><font face="Arial" size="2">Can anyone help.</font></span></div> <div><span class="560165915-10072009"><font face="Arial" size="2"></font></span> </div> <div><span class="560165915-10072009"><font face="Arial" size="2">Cheers,</font></span></div> <div><span class="560165915-10072009"><font face="Arial" size="2"><br>Neale</font></span></div><br></div></blockquote><div><br></div></div>Try using <root level="ERROR">, i.e. capital letters.<div>Just a guess, HTH</div><div><br></div><div>Regards,</div><div>Joern.</div></body></html>