Skip to content

Add structured markers to JavaScript logs - #10

Open
rogierslag wants to merge 1 commit into
mainfrom
structured-log-markers
Open

rogierslag wants to merge 1 commit into
mainfrom
structured-log-markers

Conversation

@rogierslag

Copy link
Copy Markdown
Member

JavaScript log arguments currently become message text, making custom fields difficult to query in Elasticsearch.

Adds Markers.of({...}), mirroring Java’s structured-marker approach: readable message text stays separate from attached fields. The logger exposes markers through LogMessage.fields, and the Kafka transport writes them at the event root.

Ordinary log arguments retain their behaviour. Kafka’s standard fields take precedence over marker values. Package versions remain unchanged.

@rogierslag
rogierslag marked this pull request as ready for review September 18, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant