开发者

What project directory should logback.xml be in SBT/Scala project?

I have an SBT/Scala project and logback seems to work, but totally ignores my logback.xml config file. I have placed at src/main/scala/logback.xml. It doesn't do anything.

What is the correct location for it?

Can anybody post an example of an SBT开发者_如何学运维/Scala skeleton project with a working logback.xml file?


Put it under src/main/resources/logback.xml. It will be copied to the right location when SBT is doing the artifact assembly.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜