-
Notifications
You must be signed in to change notification settings - Fork 97
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
Updating logstash to v1 #76
base: master
Are you sure you want to change the base?
Conversation
logstash['@fields'] = info; | ||
if (info.level) { | ||
logstash.level = info.level; | ||
delete info.level; |
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.
@tomasAlabes Thanks and sorry for slow review! Only question is: why are you deleting info.level? This doesn't seem necessary and feels like it could interfere with subsequent formatters that expect to find it? Let me know what you think -- thanks!
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.
No problem David.
Honestly, I was just following the pattern of the previous code 🤷♂️
Happy to merge once comments are addressed |
@@ -23,7 +24,12 @@ module.exports = format(info => { | |||
delete info.timestamp; | |||
} | |||
|
|||
logstash['@fields'] = info; |
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.
Removing this line will also remove all root level fields, not just level.
Taken from https://github.com/logstash/logstash-logback-encoder#standard-fields