[
https://issues.apache.org/jira/browse/LOG4J2-2638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gary Gregory closed LOG4J2-2638.
--------------------------------
Resolution: Fixed
Assignee: Gary Gregory
Fix Version/s: 2.12.0
3.0.0
> Add and use method org.apache.logging.log4j.message.MapMessage.toKey(String)
> for simpler subclasses
> ---------------------------------------------------------------------------------------------------
>
> Key: LOG4J2-2638
> URL: https://issues.apache.org/jira/browse/LOG4J2-2638
> Project: Log4j 2
> Issue Type: New Feature
> Reporter: Gary Gregory
> Assignee: Gary Gregory
> Priority: Major
> Fix For: 3.0.0, 2.12.0
>
>
> Add and use method a new method
> {{org.apache.logging.log4j.message.MapMessage.toKey(String)}} for simpler
> subclasses:
> {code:java}
> /**
> * 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;
> }
> {code}
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)