I have a pretty standard Scalatra project using Logback for logging.
Following the logback manual I have added a logback-test.xml
for my development configuration (logs of debugs), whilst maintaining a production logback.xml
.
However, in development while using the xsbt-web-plugin
to run a container with code reloading, my app only seems to pick up the logback.xml
.
How do I get the desired behavior?:
- In development mode (
./sbt container:start
) the app useslogback-test.xml
- When assembled into a zip using SBT-assembly, exclude the test config.
Currently neither of these seems to work.