[logback-dev] [JIRA] Commented: (LBCORE-198) Logback complains if logback.xml is in a jar

Joern Huxhorn (JIRA) noreply-jira at qos.ch
Wed Feb 23 12:10:52 CET 2011


    [ http://jira.qos.ch/browse/LBCORE-198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11967#action_11967 ] 

Joern Huxhorn commented on LBCORE-198:
--------------------------------------

This is most likely a duplicate of LBCLASSIC-246 which is supposed to be fixed in the next release.

> Logback complains if logback.xml is in a jar
> --------------------------------------------
>
>                 Key: LBCORE-198
>                 URL: http://jira.qos.ch/browse/LBCORE-198
>             Project: logback-core
>          Issue Type: Bug
>          Components: Joran
>    Affects Versions: 0.9.28
>            Reporter: Attila Király
>            Assignee: Logback dev list
>            Priority: Minor
>         Attachments: logback-sample.war
>
>
> If logback.xml is not available as a file (for example it is in a jar in the lib folder of a webapp) logback logs an error during configuration. The reason is that in ch.qos.logback.core.joran.spi.ConfigurationWatchList.convertToFile(URL) method it tries to convert the url to file and if it fails it marks this as an error. Imho it should simply silently not do anything in this case.

-- 
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