[logback-dev] Improvements to logback configuration

Ceki Gülcü ceki at qos.ch
Mon Apr 22 15:55:30 CEST 2013


Hi all,

In the release following version 1.0.12, I plan to make significant 
improvements to the logback configuration format, so that you will be 
able to write:

   <fileAppender name="FILE">
     <file>testFile.log</file>
     <append>true</append>
     <encoder>
       <pattern>[%thread] %-5level %logger{35} - %msg%n</pattern>
     </encoder>
   </fileAppender >

instead of the current more clunky

   <appender name="FILE" class="ch.qos.logback.core.FileAppender">
     <file>testFile.log</file>
     <append>true</append>
     <encoder>
       <pattern>[%thread] %-5level %logger{35} - %msg%n</pattern>
     </encoder>
   </appender>


The old format would of course continue to be valid.

More details to follow after 1.0.12 is released.

--
Ceki


More information about the logback-dev mailing list