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

Invalid multiple configuration file warning

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.17
    • Fix Version/s: 1.0.4
    • Component/s: logback-classic
    • Labels:
      None
    • Environment:

      Resin webapp

      Description

      I receive strange warnings in the status info. It says that logback.xml, which in this case comes from a file and not from the classpath, occurs multiple times. The file is specifies and logged using absolute path, so even relative paths cannot cause the warning.

      Logback configuration file is specified by the system property "logback.configurationFile". It is done by the Resin application server, somehow it is able to supply different properties for different web applications. I don't think this is important, however. Maybe I am doing something wrong, but at least the message doesn't help.

      20:36:34,236 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource file:/C:/Progra~1/mireka/conf/logback.xml at file:/C:/Progra~1/mireka/conf/logback.xml
      20:36:34,236 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource file:/C:/Progra~1/mireka/conf/logback.xml occurs multiple times on the classpath.
      20:36:34,236 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource file:/C:/Progra~1/mireka/conf/logback.xml occurs at file:/C:/Progra~1/mireka/conf/logback.xml
      20:36:34,236 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource file:/C:/Progra~1/mireka/conf/logback.xml occurs at file:/C:/Progra~1/mireka/conf/logback.xml
      20:36:34,236 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource file:/C:/Progra~1/mireka/conf/logback.xml occurs at file:/C:/Progra~1/mireka/conf/logback.xml

        Attachments

          Activity

            People

            Assignee:
            ceki Ceki Gülcü
            Reporter:
            hontvari3@solware.com Hontvári József
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: