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

Logback autoconfiguration documentation is misleading

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • logback-site
    • None

    Description

      Hello all,

      we have hit this problem a couple of times so i think it worth rising it. The Logback documentation about autoconfiguration says:
      Logback tries to find a file called logback-test.xml in the classpath.
      If no such file is found, it checks for the file logback.xml.
      In case neither file is found, logback configures itself automatically using the BasicConfigurator which will cause logging output to be directed on the console.

      This is very misleading, one might think he/she can put the logback.xml file anywhere in the classpath but Logback will find it only if it is in the top of the classpath(e.g.: right under the packages folder). Could you please fix the docs?

      Best regards,
      Zoltan Szel

      Attachments

        Activity

          People

            ceki Ceki Gülcü
            zoliszel Szel Zoltan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: