Try renaming the test file logback-test.xml; that's used in preference to logback.xml if present. <span></span><div><br></div><div>Greg<br><br>On Wednesday, 2 May 2012, Adam Gordon wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<font><font face="tahoma,sans-serif">We have different logback config files, one for testing and one for production. I just noticed a warning during a maven install that logback found multiple config files, one under target/test-classes and the other under target/classes. Is this a concern? Does logback use the first config file it finds and will it always find the test file first?<br>
<br>If not, and I realize this is may be a maven question, how do I configure maven to only use the logback file under test-classes when running the unit tests as part of the maven install command?<br clear="all"></font></font><br>
Thanks,<br><br>--adam<br><br><a href="http://gordonizer.com" target="_blank">http://gordonizer.com</a><br><br>
</blockquote></div>