[logback-dev] [JIRA] Resolved: (LBCORE-44) logback.xml vs. logback-test.xml - conflicting information on website
Ceki Gulcu (JIRA)
noreply-jira at qos.ch
Tue Oct 7 21:52:39 CEST 2008
[ http://jira.qos.ch/browse/LBCORE-44?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ceki Gulcu resolved LBCORE-44.
------------------------------
Fix Version/s: 0.9.10
Resolution: Duplicate
> logback.xml vs. logback-test.xml - conflicting information on website
> ---------------------------------------------------------------------
>
> Key: LBCORE-44
> URL: http://jira.qos.ch/browse/LBCORE-44
> Project: logback-core
> Issue Type: Bug
> Components: Other
> Affects Versions: unspecified
> Environment: Operating System: Windows
> Platform: PC
> Reporter: Sanjay Patel
> Assignee: Logback dev list
> Priority: Blocker
> Fix For: 0.9.10
>
>
> 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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the logback-dev
mailing list