Variable substitution from external resource in logback groovy configuration -


logback's xml configuration allows define variables in external resources <property resource="foo.properties" /> spelled out in http://logback.qos.ch/manual/configuration.html#variablesubstitution. i'm in process of converting logback configuration in groovy (i.e. logback.xml -> logback.groovy) , not finding easy way achieve this.

i able achieve same behavior normal java/groovy code

properties props = new properties(); props.load(new fileinputstream("foo.properties")) def filepath = props.getproperty("filepath) 

but have hoped logback have supplied shorthand in form of logback-specific extension.

does know of shorter way of accessing variables defined in external files , resources? besides this, i'm finding groovy configuration approach more concise , intuitive xml, , appreciate chance avoid dealing xml.


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -