At 3.0.0, the Quarkiverse Logging Json library enables users to emit log records that are not well-formed JSON by including structured arguments with the same name as existing properties that are emitted by the library itself.
./mvnw verify
Look for the string Something from resource
in log output.
The following code
produces the following log output which is illegal JSON due to duplicate property names:
{
"timestamp": "2023-11-13T16:46:28.178Z",
"sequence":45,
"loggerClassName": "org.jboss.logging.Logger",
"loggerName": "com.example.DefaultResource",
"level": "INFO",
"message": "Something from resource",
"threadName": "executor-thread-1",
"threadId":100,
"hostName": "circulationsolo",
"processName": "JUnitStarter",
"processId":10188,
"timestamp": "timestamp from resource",
"sequence": "sequence from resource",
"loggerClassName": "loggerClassName from resource",
"loggerName": "loggerName from resource",
"level": "level from resource",
"message": "message from resource",
"threadName": "threadName from resource",
"threadId": "threadId from resource",
"hostName": "hostName from resource",
"processName": "processName from resource",
"processId": "processId from resource",
"else": "else from resource"
}