[logback-user] Variable substitution using a separate file with groovy configuration
Ceki Gulcu
ceki at qos.ch
Mon Dec 20 10:09:35 CET 2010
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 at qos.ch
> http://qos.ch/mailman/listinfo/logback-user
More information about the Logback-user
mailing list