开发者

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

开发者 https://www.devze.com 2023-02-15 17:39 出处:网络
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.

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

精彩评论

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