Skip to content

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 pugnascotia requested a review from pgomulka August 27, 2020 13:06
@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

return new DeprecationLoggerBuilder().withDeprecation(key, msg, params);
}

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