10

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?

Jacek Laskowski
  • 72,696
  • 27
  • 242
  • 420
jpswain
  • 14,642
  • 8
  • 58
  • 63

1 Answers1

20

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

Jacek Laskowski
  • 72,696
  • 27
  • 242
  • 420
Y.H Wong
  • 7,151
  • 3
  • 33
  • 35