JBoss EAP 7 MDC Json Formatter limitations and customizations
Issue
- How to customize the Json formatter in EAP 7.4?
- Can I unwrapp the mdc message when using the default Json formatter in EAP 7.4?
{
"timestamp":"2021-11-22T15:40:10.817-05:00",
"sequence":64,
"loggerClassName":"org.jboss.logging.Logger",
"loggerName":"TestEjb","level":"INFO",
"message":"With MDC", <--------------------------------------------------- message
"threadName":"ServerService Thread Pool -- 77",
"threadId":159,
"mdc":{"test":"KYLE"}, <--------------------------------------------------- mdc
"ndc":"",
"processName":"jboss-modules.jar",
"processId":11599
}
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.