logback icon indicating copy to clipboard operation
logback copied to clipboard

fix LOGBACK-1002

Open magicprinc opened this issue 10 years ago • 6 comments

"Include" support for logback.groovy. http://jira.qos.ch/browse/LOGBACK-1002

magicprinc avatar Apr 24 '15 15:04 magicprinc

Hello?

magicprinc avatar May 22 '15 09:05 magicprinc

I'll look into it on Tuesday.

ceki avatar May 22 '15 17:05 ceki

Can you add test cases?

ceki avatar May 22 '15 17:05 ceki

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... ;-)

magicprinc avatar May 22 '15 18:05 magicprinc

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

magicprinc avatar May 25 '15 10:05 magicprinc

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)

magicprinc avatar Aug 15 '15 09:08 magicprinc