-
Notifications
You must be signed in to change notification settings - Fork 77
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
Adding layout support to the logback ecs encoder #220
Conversation
@felixbarny and @maxiking445 can you please take a look, as mentioned this replaces #145 but incorporates those changes into it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
logback-ecs-encoder/src/main/java/co/elastic/logging/logback/EcsEncoder.java
Outdated
Show resolved
Hide resolved
Fixed per the feedback from the public PR. Signed-off-by: Difrango, Ronald <Ronald.Difrango@fmr.com>
da9c9fa
@@ -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)); |
There was a problem hiding this comment.
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.
Adding layout support to the ecs encoder.
This is a replacement for #145 but incorporates the changes from that branch.