logback
logback copied to clipboard
fix LOGBACK-1002
"Include" support for logback.groovy. http://jira.qos.ch/browse/LOGBACK-1002
Hello?
I'll look into it on Tuesday.
Can you add test cases?
Thank You for the answer! Here (http://jira.qos.ch/browse/LOGBACK-1002) is example project. But junit test is harder for me (I don't know logback internals)...
But if it "must" is - I can try... ;-)
I have uploaded a new version of example project with unit test.
http://jira.qos.ch/browse/LOGBACK-1002 http://jira.qos.ch/secure/attachment/11453/logback_groovy_config_include_support_junit.zip
diff src\test\groovy\ch\qos\logback\classic\gaffer\GafferConfiguratorTest.groovy - last method src\test\input\gaffer\inc1.groovy src\test\input\gaffer\inc2.groovy
How can I help more with this?
I think groovy DSL is a future. See gradle (groovy DSL) vs maven (XML).
But without "include" it can't be used in Application servers. (One have very different log configs: windows/linux, dev, test, production - so you can't include "one to rule them all" log config in .war)