I wanted to use logback for my tests’ logging on an
SBT project recently, and it took a little while to work out how best to do it. The good news is that it turns out to be simple enough (once you know what to do).
build.sbt add dependencies for Groovy and Logback Classic (I have restricted them just to ‘test’ scope as I only want this to apply to my tests)
1 2 3 4 5
Then put your
logback.groovy in the root of your
That’s it - logging during test execution should now be under the control of your