aabhas-sao commented on issue #4141:
URL:
https://github.com/apache/logging-log4j2/issues/4141#issuecomment-4825016163
Hi @vy ,
I was checking out this issue just to explore
```java
void testMsgXml() {
final String testMsg = "Test message {}";
final StructuredDataMessage msg = new
StructuredDataMessage("MsgId@12345", testMsg, "Alert");
msg.put("project", "Log4j");
msg.put("memo", "This is a very long test memo to prevent regression
of LOG4J2-114");
final String result = msg.getFormattedMessage(new String[] {"JSON"});
```
Even for JSON the message is not populated, that message is just an
attribute for StructuredDataMessage, so as far I can see this looks as working
as expected only.
```
[MsgId@12345 memo="This is a very long test memo to prevent regression of
LOG4J2-114" project="Log4j"]
```
--
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]