ppkarwasz commented on issue #1813:
URL: 
https://github.com/apache/logging-log4j2/issues/1813#issuecomment-1732236092

   What if the user wants to format the message as text? Using:
   ```
   logger.atInfo()
         .setMessage("Hello")
         .addKeyValue("key", "value")
         .log();
   ```
   the expected output in Logback (with pattern "%kvp %m") is:
   ```
   key="value" Hello
   ```
   Currently a `PatternLayout` with pattern `%X %m` outputs:
   ```
   {key=value} Hello
   ```
   After your proposed changes it would output:
   ```
   {key=value, message=Hello}
   ```
   We probably need a new message type or we need to next a `MapMessage` inside 
a `ParameterizedMessage`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to