-
Notifications
You must be signed in to change notification settings - Fork 8
Add feature switch for JSON log enhancement #18
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
Add feature switch for JSON log enhancement #18
Conversation
|
@himanshu219 please take a look when you can. |
| } else { | ||
| item["message"] = json | ||
| if s.config.EnhanceJsonLogs { | ||
| item = json |
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.
shouldn't it be opposite if enhance json logs is true then item["message"] = json else item = json
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.
Oh, that's correct. Fixing it.
SumoLogic#13 Implement a feature switch to turn off log enhancement for JSON logs Feature switch defaults to `true`, so behaviour is unchanged
ac32200 to
2b31f95
Compare
|
@himanshu219 thanks for the merge. Should I make a new release with it or is that your responsibility? |
|
release is done automatically via github actions I will push the new tag |
|
@himanshu219 do you have an ETA for that? |
|
new release is published. |
#13
Implement a feature switch to turn off log enhancement for JSON logs
Feature switch defaults to
true, so behaviour is unchangedPR Details
Add a feature switch to turn off log enhancement for JSON logs
Description
Implement a feature switch (via the enrivonment variable
SUMO_ENHANCE_JSON_LOGS) which defaults totrueso current behaviour remains unchanged. If the feature switch is set tofalsethen the message sent to SumoLogic will not contain any addition metadata only the actual log message.Related Issue
#13
Checklist