Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

scala

logback

sbt

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?

like image 617
jpswain Avatar asked Mar 07 '11 03:03

jpswain


1 Answers

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

like image 137
Y.H Wong Avatar answered Nov 09 '22 05:11

Y.H Wong