[logback-dev] [Bug 140] New: logback.xml vs. logback-test.xml - conflicting information on website

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Mon Mar 24 14:05:54 CET 2008


http://bugzilla.qos.ch/show_bug.cgi?id=140

           Summary: logback.xml vs. logback-test.xml - conflicting
                    information on website
           Product: logback-core
           Version: unspecified
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: Other
        AssignedTo: logback-dev at qos.ch
        ReportedBy: sapatel at nemours.org


I am using latest version of logback.
--------------------------------------------------------------------
                <dependency>
                        <groupId>org.slf4j</groupId>
                        <artifactId>slf4j-api</artifactId>
                </dependency>
                <dependency>
                        <groupId>ch.qos.logback</groupId>
                        <artifactId>logback-classic</artifactId>
                </dependency>
--------------------------------------------------------------------

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.


-- 
Configure bugmail: http://bugzilla.qos.ch/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the logback-dev mailing list