I don't think you can do anything right now. I implemented a feature for
ObjectMessage but not for MapMessage last month.
https://github.com/apache/logging-log4j2/pull/141
On Wed, Feb 14, 2018 at 12:47 AM, Atle Tokle wrote:
> I add key/values to logging using MapMessage like this.
> logger.info
I add key/values to logging using MapMessage like this.
logger.info(new MapMessage().with("key1", "value1").with("key2", "value2"));
I see that the MapMessage can format messages as key="value", json and XML.
I use a JsonAppender to ouput a format that is easy indexable by our
log-management syst