[logback-user] Can't set level (logback.classic-0.9.9)

Neale Upstone Upstone.N at cambridgeassessment.org.uk
Tue Jul 14 11:11:06 CEST 2009

Ah. That explains why I was struggling with the documentation.

Many thanks. 

-----Original Message-----
From: logback-user-bounces at qos.ch [mailto:logback-user-bounces at qos.ch] On Behalf Of Ceki Gulcu
Sent: 13 July 2009 17:15
To: logback users list
Subject: Re: [logback-user] Can't set level (logback.classic-0.9.9)


0.9.9 is the reason. Only logback versoins 0.9.12 and later accept level as an

<root level="error">

for "older" versions, the level has be specified as an element:


Of course, logback versions 0.9.12 honor the old format as well. In any case, level values are case insensitive.


Neale Upstone wrote:
> Hi,
> Tried CAPS, and that doesn't work.  I'm using 0.9.9 as I want to use 
> the Eclipse plugin.
> Cheers,
> Neale
> ----------------------------------------------------------------------
> --
> *From:* logback-user-bounces at qos.ch 
> [mailto:logback-user-bounces at qos.ch]
> *On Behalf Of *Joern Huxhorn
> *Sent:* 10 July 2009 21:30
> *To:* logback users list
> *Subject:* Re: [logback-user] Can't set level
> On 10.07.2009, at 18:03, Neale Upstone wrote:
>> Hi,
>> I've been trying the examples at
>> http://logback.qos.ch/manual/configuration.html and the level 
>> attribute is always ignored.
>> i.e. the following should ensure that I only get error messages logged:
>> <configuration>
>>   <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
>>     <layout class="ch.qos.logback.classic.PatternLayout">
>>       <Pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - 
>> %msg%n</Pattern>
>>     </layout>
>>   </appender>
>>   <root level="error">
>>     <appender-ref ref="STDOUT" />
>>   </root>
>> </configuration>
>> 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).
>> Can anyone help.
>> Cheers,
>> Neale
> Try using  <root level="ERROR">, i.e. capital letters.
> Just a guess, HTH
> Regards,
> Joern.
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.
Logback-user mailing list
Logback-user at qos.ch

 Click https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg==  to report this email as spam.

If you are not the intended recipient, employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination or copying of this communication and its attachments is strictly prohibited. 
If you have received this communication and its attachments in error, please return the original message and attachments to the sender using the reply facility on e-mail. 
Internet communications are not secure and therefore Cambridge Assessment (the brand name for the University of Cambridge Local Examinations Syndicate, the constituent elements of which are CIE, ESOL and OCR [Oxford Cambridge and RSA Examinations is a Company Limited by Guarantee Registered in England.  Registered office: 1 Hills Road, Cambridge CB1 2EU.  Company number: 3484466]) does not accept legal responsibility for the contents of this message. 
Any views or opinions presented are solely those of the author and do not necessarily represent those of Cambridge Assessment unless otherwise specifically stated.  
The information contained in this email may be subject to public disclosure under the Freedom of Information Act 2000. Unless the information is legally exempt from disclosure, the confidentiality of this email and your reply cannot be guaranteed.

More information about the Logback-user mailing list