title: How to properly manage logback configrations in development and production using SBT & Scala?
body: <p>I have a pretty standard Scalatra project using Logback for logging.</p>
  
  <p>Following the <a href="http://logback.qos.ch/manual/configuration.html" rel="noreferrer">logback manual</a> I have added a <code>logback-test.xml</code> for my development configuration (logs of debugs), whilst maintaining a production <code>logback.xml</code>.</p>
  
  <p>However, in development while using the <code>xsbt-web-plugin</code> to run a container with code reloading, my app only seems to pick up the <code>logback.xml</code>.</p>
  
  <p>How do I get the desired behavior?:</p>
  
  <ol>
  <li>In development mode (<code>./sbt container:start</code>) the app uses <code>logback-test.xml</code></li>
  <li>When assembled into a zip using <a href="https://github.com/sbt/sbt-assembly" rel="noreferrer">SBT-assembly</a>, exclude the test config.</li>
  </ol>
  
  <p>Currently neither of these seems to work.</p>