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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.5
    • 2.7
    • None
    • 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

            rpopma Remko Popma
            pknobel Philipp Knobel
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: