Thanks all for your help. I thought that logback loaded all the configurations files found (I believe I got this impression after seeing its output log detailing all the files that were found).
Is this the case? If yes, maybe all those config files are processed and the last one wins. Thanks, On Thu, Nov 15, 2012 at 8:15 AM, Marshall Pierce <[email protected]> wrote: > You can also use > http://logback.qos.ch/manual/configuration.html#configFileProperty. I > generally use a config file named '{app name}-logback-config.xml' or > something like that and specify it with that property to avoid this sort of > problem. > > -Marshall > > On Nov 15, 2012, at 5:21 AM, Thorbjørn Ravn Andersen > <[email protected]> wrote: > >> Please see >> http://logback.qos.ch/manual/configuration.html#auto_configuration >> >> Item 3 is what the jar provides, so you just need item 1 or item 2 to >> succeed. The easiest is renaming your logback.xml to logback-test.xml >> >> Best regards, >> >> /Thorbjørn >> >> -----Original Message----- >> From: [email protected] [mailto:[email protected]] On >> Behalf Of Sebastian Esponda >> Sent: 15. november 2012 00:30 >> To: [email protected] >> Subject: [logback-user] ignoring logback.xml files embedded in other jars >> >> Hello, >> >> We are developing a web application that has its logging configuration under >> /classes. Unfortunately, we depend on another JAR (which we can't modify) >> which also has a its own logback.xml file. >> During the startup process logback detects and uses both files. Is there any >> way to set it up so that the one included in the JAR is ignored? >> >> Thanks, >> _______________________________________________ >> Logback-user mailing list >> [email protected] >> http://mailman.qos.ch/mailman/listinfo/logback-user >> >> _______________________________________________ >> Logback-user mailing list >> [email protected] >> http://mailman.qos.ch/mailman/listinfo/logback-user > > _______________________________________________ > Logback-user mailing list > [email protected] > http://mailman.qos.ch/mailman/listinfo/logback-user _______________________________________________ Logback-user mailing list [email protected] http://mailman.qos.ch/mailman/listinfo/logback-user
