[logback-dev] [JIRA] Created: (LBCLASSIC-235) Should log an error if -Dlogback.configurationFile but not found, and not attempt default config

Eric Estievenart (JIRA) noreply-jira at qos.ch
Sat Dec 11 17:21:52 CET 2010


Should log an error if -Dlogback.configurationFile but not found, and not attempt default config
------------------------------------------------------------------------------------------------

                 Key: LBCLASSIC-235
                 URL: http://jira.qos.ch/browse/LBCLASSIC-235
             Project: logback-classic
          Issue Type: Bug
    Affects Versions: 0.9.26
            Reporter: Eric Estievenart
            Assignee: Logback dev list


$ java -Dlogback.configurationFile=missingfile.xml -cp .... MyClass
>> no output is generated

A status dump says:
16:14:01,778 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [missingfile.xml]
16:14:01,779 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
16:14:01,779 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
16:14:01,780 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.xml]
16:14:01,786 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Setting up default configuration.

First, logback should issue an error saying that the explicitely selected 'missingfile' was not found.
Then I don't thing that it should try to load default config files, since one has been requested by the user.



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