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

Implement deprecation logging using log4j #61629

Merged

Conversation

pugnascotia
Copy link
Contributor

Backport of #61474.

Part of #46106. Simplify the implementation of deprecation logging by
relying of log4j more completely, and implementing additional behaviour
through custom appenders and filters.

Backport of elastic#61474.

Part of elastic#46106. Simplify the implementation of deprecation logging by
relying of log4j more completely, and implementing additional behaviour
through custom appenders and filters.
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (:Core/Infra/Logging)

@elasticmachine elasticmachine added the Team:Core/Infra Meta label for core/infra team label Aug 27, 2020
@pugnascotia
Copy link
Contributor Author

@pgomulka this backport was straightforward after your backports, but I'd still feel happier if you'd take a quick too over this 🙏

Copy link
Contributor

@pgomulka pgomulka left a comment

Choose a reason for hiding this comment

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

LGTM
left one question

}

public class DeprecationLoggerBuilder {
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if we need this builder in 7.x - I removed this from my backport because there will be no compatible logger in 7.x
However I am thinking now that it might cause problems for future backports and we should keep it?
WDYT?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let's keep it - we've already backported more logging changes to 7.x than we expected, and there may well be more before v8 is released.

@pugnascotia pugnascotia merged commit ff6c071 into elastic:7.x Aug 31, 2020
@pugnascotia pugnascotia deleted the 46106-use-log4j-for-deprecation-logs-7x branch August 31, 2020 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport :Core/Infra/Logging Log management and logging utilities >refactoring Team:Core/Infra Meta label for core/infra team v7.10.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants