Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-1313

<Property name="" value="" /> not working

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.7
    • Component/s: None
    • Labels:
      None

      Description

      The documentation shows examples of the property tag like this (http://logging.apache.org/log4j/2.x/manual/configuration.html#ConfigurationSyntax):

      <Properties>
          <Property name="name1">value</property>
          <Property name="name2" value="value2"/>
        </Properties>
      

      When using the later one with the value attribute you'll get on startup this error:

      ERROR Property contains an invalid element or attribute "value"
      

      It would be good to have the attribute support working as well, as otherwise it might happen that IDE auto formatting is line breaking an attribute. If this isn't possible please update the documentation.

        Attachments

          Activity

            People

            • Assignee:
              remkop@yahoo.com Remko Popma
              Reporter:
              pknobel Philipp Knobel
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: