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

Add and use method org.apache.logging.log4j.message.MapMessage.toKey(String) for simpler subclasses

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0, 2.12.0
    • None
    • None

    Description

      Add and use method a new method org.apache.logging.log4j.message.MapMessage.toKey(String) for simpler subclasses:

          /**
           * Allows subclasses to change a candidate key to an actual key.
           * 
           * @param candidateKey The candidate key.
           * @return The candidate key.
           * @since 2.12
           */
          protected String toKey(final String candidateKey) {
              return candidateKey;
          }
      

       

      Attachments

        Activity

          People

            ggregory Gary D. Gregory
            ggregory Gary D. Gregory
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: