Maybe it's time for a new release? There have been significant changes and bug fixes since 0.9.8. E.g., the logback.xml/logback-text.xml search order (not just the docs have changed!), behavior of properties in contexts, MDC thread inheritance, etc.
Unless there's active development that prevents easy releases, isn't it better (especially with a new library that's trying to build momentum) that the best code available is in the hands of users? It's not the (somewhat silly) 0.9.x numbering scheme that's holding back a release, is it? -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ceki Gulcu Sent: Wednesday, March 26, 2008 1:15 PM To: logback users list Subject: Re: [logback-user] logback.xml vs logback-test.xml The discrepancy in docs is unfortunate, and the faq is wrong. The logback-test.xml is searched first. I've corrected this problem in the SVN trunk. My apologies for the confusion. Anders Hammar wrote: > Hi, > > I had a quick look in the code (trunk of logback-classic) and > logback-test.xml is used before logback.xml. This is however the > trunk, so the behavior could be different in the release you're using > (I did not check the 0.9.8 release). The faq should be corrected and > the best way to make this happen is if you file a jira. Could you > please do that? > > /Anders > > On Fri, Mar 21, 2008 at 6:55 PM, Patel, Sanjay <[EMAIL PROTECTED]> wrote: >> I found conflicting information on the logback website. >> >> http://logback.qos.ch/faq.html states >> >> "If a file called logback.xml is found in the classpath, then it is used. >> In case it is not found, a logback-test.xml file is searched, and used if >> available. >> If none of these files are available, logback uses its BasicConfigurator >> class to create a simple default configuration that will only log to the >> console." >> >> http://logback.qos.ch/manual/joran.html states >> >> " 1. Logback tries to find a file called logback-test.xml in the classpath. >> 2. If no such file is found, it checks for the file logback.xml. >> 3. In case neither file is found, logback configures itself automatically >> using the BasicConfigurator which will cause logging output to be directed >> on the console" >> >> I think that FAQ (http://logback.qos.ch/faq.html) is correct. If it is >> true, while running tests using Maven (mvn test) it uses >> "src/main/resources" (home of logback.xml) and "src/test/resources" (home >> of logback-test.xml). logback-test.xml will never override logback.xml. -- Ceki Gülcü QOS.ch is looking to hire talented developers in Switzerland. If interested, please contact c e k i @ q o s . c h _______________________________________________ Logback-user mailing list [email protected] http://qos.ch/mailman/listinfo/logback-user ************************************************************************* The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please resend this communication to the sender and delete the original message or any copy of it from your computer system. Thank you. ************************************************************************* _______________________________________________ Logback-user mailing list [email protected] http://qos.ch/mailman/listinfo/logback-user
