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

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0, 2.12.0
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: