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

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

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: