Update StructuredDataMessage Javadoc for RFC 5424 compliance#4103
Update StructuredDataMessage Javadoc for RFC 5424 compliance#4103DrDrunkenstien-10 wants to merge 1 commit intoapache:2.xfrom
Conversation
|
@ppkarwasz, would you mind helping with reviewing this one, please? |
|
Thank you for the contribution, the Javadoc improvement is very appreciated! ❤️ However, since we'll be preparing a new minor version soon, I think we can push this further: throw an Regarding the recommendation of using
While the above is true, there seems to be another small problem in the code: the possible fields specified by |
Fixes #4051
This pull request improves the Javadoc of StructuredDataMessage constructors by clarifying
the expected format and usage of the
id(SD-ID) andtype(MSGID) parameters.Specifically:
This change is documentation-only and does not modify runtime behavior.
This improvement is based on feedback from the YesWeHack bug bounty report (#YWH-PGM10209-37),
which identified a lack of clarity in the existing documentation.
Checklist
Base your changes on
2.xbranch if you are targeting Log4j 2; usemainotherwise2.x)./mvnw verifysucceeds (the build instructions)Non-trivial changes contain an entry file in the
src/changelog/.2.x.xdirectoryTests are provided