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

Support optional include files

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.0.12
    • 0.9.26
    • logback-classic
    • None

    Description

      Logback emits a warning if a file named in <include/> isn't present.

      Sometimes, an included configuration file is purely optional. E.g. I would want to mail a more verbose configuration to a customer who has some mysterious error where the standard logging simply isn't detailed enough.

      Unfortunately, this means that in the standard case, I'll be spammed with the missing file warning, plus heaps of INFO messages. This might distract from relevant logback configuration problems.

      Suggestion: extend <include/> so that it accepts <include optional="true" ... />. If an include is optional, it will not generate error messages if the requested configuration is not present.
      The loading code might want to differentiate between "does not exist" (to suppress the message) and other problems (which probably should still be reported).

      Attachments

        Activity

          People

            logback-dev Logback dev list
            jo@durchholz.org Joachim Durchholz
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: