[logback-user] Multiple logback config files warning

Adam Gordon adam.n.gordon at gmail.com
Wed May 2 23:56:22 CEST 2012


Ahhhh.  I'd thought we'd done that.  Changing the name of the file fixed
the issue.  Thanks.

--adam

http://gordonizer.com



On Wed, May 2, 2012 at 3:24 PM, Greg Thomas <greg.d.thomas at gmail.com> wrote:

> Try renaming the test file logback-test.xml; that's used in preference to
> logback.xml if present.
>
> Greg
>
>
> On Wednesday, 2 May 2012, Adam Gordon wrote:
>
>> 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?
>>
>> 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?
>>
>> Thanks,
>>
>> --adam
>>
>> http://gordonizer.com
>>
>>
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://mailman.qos.ch/mailman/listinfo/logback-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20120502/b1e8b672/attachment.html>


More information about the Logback-user mailing list