Variable substitution using a separate file with groovy configuration

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

Hello Arsene, There is no equivalent of the property action in GafferConfigurator (the groovy configurator). It's a missing feature. Please ask for it in a new Jira entry. Best regards, On 20.12.2010 09:37, Muyen Lee wrote:
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
_______________________________________________ Logback-user mailing list Logback-user@qos.ch http://qos.ch/mailman/listinfo/logback-user
participants (2)
-
Ceki Gulcu
-
Muyen Lee