vy opened a new pull request, #2773:
URL: https://github.com/apache/logging-log4j2/pull/2773

   `Message#getFormat()` doesn't only have unclear semantics, it is also 
implemented very inconsistently. One might think it should return `JSON` by 
messages that want to format themselves in JSON, yet, thanks to many 
implementations forwarding `getFormat()` to `message` (yes, the arbitrary 
user-provided message!), this is not the case.
   
   In short, it is an incomplete and failed attempt to allow messages to format 
themselves in one or more encodings. Good news is, we already have a working 
solution for that: `MultiformatMessage`.
   
   This PR
   1. deprecates `Message#getFormat()`
   2. advocates `MultiformatMessage`


-- 
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