eherot opened a new pull request, #1381: URL: https://github.com/apache/logging-log4j2/pull/1381
PatternLayout can display the marker's parents with `%marker`. I thought it would be handy if the JSON Template Layout also had that capability. Also added tests for the existing MarkerResolver since there weren't any Additionally: Slightly modified the TestHelper to catch exceptions in `readJson` and re-throw with the serialized event, to make it a little easier to debug JSON formatting issues. ## Checklist - [x] Base your changes on `2.x` branch if you are targeting Log4j 2; use `main` otherwise - [x] `./mvnw verify` succeeds (if it fails due to code formatting issues reported by Spotless, simply run `spotless:apply` and retry) - [x] Changes contain an entry file in the `src/changelog/.2.x.x` directory - [x] Tests for the changes are provided - [ ] [Commits are signed](https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits) (optional, but highly recommended) -- 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]
