logback: how do I differentiate logging between te

2019-07-04 10:57发布

I understand that, when using xml configuration, you can put a logback-test.xml under src/test/resources for test phase logging and logback.xml under src/main/resources for main logging.

However, how can I achieve the same thing for groovy configuration? Thank you very much.

1条回答
我只想做你的唯一
2楼-- · 2019-07-04 11:18

You should be able to put your logback.groovy log configuration for your tests under /src/test/resources. It'll take precedence over the logback.groovy under /src/main/resources

查看更多
登录 后发表回答