Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-332

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

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 0.9.26
    • None
    • None

    Description

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

      Attachments

        Activity

          People

            logback-dev Logback dev list
            eestieve Eric Estievenart
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: