[logback-user] Variable substitution using a separate file with groovy configuration

Muyen Lee muyen_lee at hotmail.com
Mon Dec 20 09:37:50 CET 2010


Hi,

 

How do I use variable substitution using a separate file with groovy
configuration?

 

I tried xml to groovy translate tool but I got an error message

// File attribute not supported for <property> element

 

 

<configuration>

  <property
file="src/main/java/chapters/configuration/variables1.properties" />

  <appender name="FILE" class="ch.qos.logback.core.FileAppender">
     <file>${USER_HOME}/myApp.log</file>
     <encoder>
       <pattern>%msg%n</pattern>
     </encoder>
   </appender>

   <root level="debug">
     <appender-ref ref="FILE" />
   </root>
</configuration>

 

 

Regards,

 

Arsene

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://qos.ch/pipermail/logback-user/attachments/20101220/ff265b27/attachment.html>


More information about the Logback-user mailing list