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

System Properties should override properties in logback.xml (not the other way around)

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • None
    • None

    Description

      From the logback configuration guide (http://logback.qos.ch/manual/configuration.html)
      "The property is not declared in the configuration file, thus logback will look for it in the System properties. Java system properties can be set on the command line. "

      I believe the precedence should be reversed. Typically, system properties are used to override default values of properties that are specified in XML files or property files (typically checked into source control). Please consider this enhancement. For backwards compatibility you may want to add an option to toggle the precedence ordering.

      Attachments

        Activity

          People

            logback-dev Logback dev list
            sirianni Eric Sirianni
            Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: