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

Suppress Default Values from MDC #120

Merged
merged 1 commit into from
Dec 3, 2021
Merged

Conversation

KarstenSchnitter
Copy link
Contributor

The library can add fields from the MDC to each generated log messages.
Certain fields are always created, even if the value is unknown. This changes
avoids those fields in the output. This reduces message size and avoids
unnecessary fields in the target service.
The old behaviour is still available by an extra configuration in the logback.xml
or log4j2.xml.

Signed-off-by: Karsten Schnitter k.schnitter@sap.com

The library can add fields from the MDC to each generated log messages.
Certain fields are always created, even if the value is unknown. This changes
avoids those fields in the output. This reduces message size and avoids
unnecessary fields in the target service.
The old behaviour is still available by an extra configuration in the logback.xml
or log4j2.xml.

Signed-off-by: Karsten Schnitter <k.schnitter@sap.com>
@nicklas-dohrn nicklas-dohrn self-requested a review November 30, 2021 09:04
Copy link
Contributor

@nicklas-dohrn nicklas-dohrn left a comment

Choose a reason for hiding this comment

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

Just to get up to speed

@KarstenSchnitter KarstenSchnitter merged commit ac8e76d into master Dec 3, 2021
@KarstenSchnitter KarstenSchnitter deleted the suppress-default-values branch December 3, 2021 20:28
@KarstenSchnitter KarstenSchnitter linked an issue Dec 21, 2021 that may be closed by this pull request
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.

Provide option to not emit fields with default values "-".
2 participants