What project directory should logback.xml be in SB

2019-02-12 18:08发布

问题:

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?

回答1:

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