Groovy configuration includes

Hi, Is there any way for groovy configuration to do something like <include file="logback-parent.xml" /> with current logback functionality? I noticed that http://jira.qos.ch/browse/LOGBACK-1002 says that there isn't something like that at the moment, and the pull request for it is still open (https://github.com/qos-ch/logback/pull/257). We need to have different runtime configurations of logback depending on the environment, especially for production. If logback.groovy is inside the jar then any potential issues with logback that might arise in production can't be fixed quickly without messing with the jar, so this issue is blocking us from migrating to groovy away from xml. Thanks, CP

If logback.groovy is inside the jar then any potential issues with logback that might arise in production can't be fixed quickly without messing with the jar...
Don't put logback.groovy in a jar then? -- View this message in context: http://logback.10977.n7.nabble.com/Groovy-configuration-includes-tp14469p144... Sent from the Users mailing list archive at Nabble.com.

Don't put logback.groovy in a jar then?
Well, if you're using Maven and place logback.groovy in src/main/resources then it will automatically go in the jar. I guess it's possible to have a separate logback.groovy file and place it in the classpath at runtime but I'd rather not if there's an easier method.
participants (2)
-
Charlie Pai
-
yihtserns