Skip to content

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 [email protected]

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 <[email protected]>
@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