Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding layout support to the logback ecs encoder #220

Merged
merged 5 commits into from
Jan 17, 2024

Conversation

rdifrango
Copy link
Contributor

Adding layout support to the ecs encoder.

This is a replacement for #145 but incorporates the changes from that branch.

@github-actions github-actions bot added agent-java community Issues and PRs created by the community triage Issues and PRs that need to be triaged labels Dec 15, 2023
@rdifrango rdifrango mentioned this pull request Dec 18, 2023
@rdifrango
Copy link
Contributor Author

@felixbarny and @maxiking445 can you please take a look, as mentioned this replaces #145 but incorporates those changes into it.

JonasKunz
JonasKunz previously approved these changes Jan 9, 2024
Copy link
Contributor

@JonasKunz JonasKunz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SylvainJuge SylvainJuge changed the title Adding layout support to the ecs encoder Adding layout support to the logback ecs encoder Jan 9, 2024
SylvainJuge
SylvainJuge previously approved these changes Jan 9, 2024
Copy link
Member

@SylvainJuge SylvainJuge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Fixed per the feedback from the public PR.

Signed-off-by: Difrango, Ronald <Ronald.Difrango@fmr.com>
@brianwarner brianwarner dismissed stale reviews from SylvainJuge and JonasKunz via da9c9fa January 16, 2024 14:54
@@ -142,7 +142,7 @@ private void serializeMessage(ILoggingEvent event, StringBuilder builder) {
if (messageLayout == null) {
EcsJsonSerializer.serializeFormattedMessage(builder, event.getFormattedMessage());
} else {
EcsJsonSerializer.serializeFormattedMessage(builder, this.messageLayout.doLayout(event));
EcsJsonSerializer.serializeFormattedMessage(builder, messageLayout.doLayout(event));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved per the PR comments.

@JonasKunz JonasKunz merged commit 73d1988 into elastic:main Jan 17, 2024
6 checks passed
@SylvainJuge SylvainJuge removed the triage Issues and PRs that need to be triaged label Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agent-java community Issues and PRs created by the community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants