Gary Gregory created LOG4J2-1935:
------------------------------------

             Summary: Add with(String, primitive) methods to 
org.apache.logging.log4j.message.MapMessage
                 Key: LOG4J2-1935
                 URL: https://issues.apache.org/jira/browse/LOG4J2-1935
             Project: Log4j 2
          Issue Type: New Feature
            Reporter: Gary Gregory
            Assignee: Gary Gregory


Add with() methods for primitives and Object:
- with(String, boolean)
- with(String, byte)
- with(String, char)
- with(String, double)
- with(String, float)
- with(String, int)
- with(String, long)
- with(String, Object)
- with(String, short)

This one already exists:
- with(String, String)

This parallels what you can do with a JMS {{MapMessage}}.

The following {{protected}} methods have also been added:

- validate(String, boolean)
- validate(String, byte)
- validate(String, char)
- validate(String, double)
- validate(String, float)
- validate(String, int)
- validate(String, long)
- validate(String, Object)
- validate(String, short)

The method {{validate(String, String)}} already exists.




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to