[logback-user] Can't set level

Neale Upstone Upstone.N at cambridgeassessment.org.uk
Fri Jul 10 18:03:09 CEST 2009


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


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://qos.ch/pipermail/logback-user/attachments/20090710/d1d3474a/attachment.html>


More information about the Logback-user mailing list