Re: [D] Removing `StructuredDataMessage` and all other R FC 5424 et al. [logging-log4j2]
rgoers (via GitHub) <[email protected]> Wed, 03 Jun 2026 14:10:22 -0000
| Newsgroups | gmane.comp.jakarta.log4j.devel |
|---|---|
| Message-ID | <ghd-D_kwDOAKJSSM4Am20J-900502ba-aefc-4351-8af0-9a544139a9cb__2207.18855723447$1780495898$gmane$org@gitbox.apache.org> |
GitHub user rgoers added a comment to the discussion: Removing `StructuredDataMessage` and all other RFC 5424 et al. I would suggest fixing StructuredDataMessage. First, add a StructuredData element that contains the SD-ID and the key/value pairs. Then modify StructuredDataMessage with a constructor that accepts List of StructuredDataElements and a String message. I would deprecate the existing constructors in 2.x and remove them in 3.x. I would then modify StructuredDataMessage accordingliy. Since StructuredDataMessage should extend MapMessage I would suggest that when acting as a MapMessage the maps of the StructuredDataMessages be merged and their keys be prefixed with the SD-ID value followed by ":". I would then modify RFC5424Layout to leverage this structure. Everything else should treat it as a MapMessage. GitHub link: https://github.com/apache/logging-log4j2/discussions/4140#discussioncomment-17166743 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]