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 #61474

Merged

Conversation

pugnascotia
Copy link
Contributor

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

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/Core)

@elasticmachine elasticmachine added the Team:Core/Infra Meta label for core/infra team label Aug 24, 2020
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.

I see this is with with HeaderWarning being the appender only (no logger)
I agree with your comment if we really need that we can refactor later.

LGTM!

Copy link
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

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

LGTM

@pugnascotia pugnascotia merged commit f0aa24e into elastic:master Aug 25, 2020
@pugnascotia pugnascotia deleted the 46106-use-log4j-for-deprecation-logs branch August 25, 2020 08:49
pugnascotia added a commit to pugnascotia/elasticsearch that referenced this pull request Aug 27, 2020
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.
pugnascotia added a commit that referenced this pull request Aug 31, 2020
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.
pugnascotia added a commit that referenced this pull request Sep 2, 2020
PR #61474 reworked deprecation logging to rely more heavily on log4j. Unfortunately,
the changes required to log4j's configuration were not applied to the version we ship
with the Docker image.
pugnascotia added a commit that referenced this pull request Sep 2, 2020
PR #61474 reworked deprecation logging to rely more heavily on log4j. Unfortunately,
the changes required to log4j's configuration were not applied to the version we ship
with the Docker image.
@pugnascotia
Copy link
Contributor Author

pugnascotia commented Oct 21, 2020

Note that these changes related to indexing the logs were removed from 7.10 in #63942.

pgomulka added a commit to pgomulka/elasticsearch that referenced this pull request Feb 18, 2021
The elastic#61474 changed the way we throttle deprecation logs, but missed a
filter to plaintext deprecation logs

closes elastic#69188
pgomulka added a commit that referenced this pull request Feb 23, 2021
The #61474 changed the way we throttle deprecation logs, but missed a
filter to plaintext deprecation logs

closes #69188
pgomulka added a commit to pgomulka/elasticsearch that referenced this pull request Feb 23, 2021
The elastic#61474 changed the way we throttle deprecation logs, but missed a
filter to plaintext deprecation logs

closes elastic#69188
pgomulka added a commit to pgomulka/elasticsearch that referenced this pull request Feb 23, 2021
The elastic#61474 changed the way we throttle deprecation logs, but missed a
filter to plaintext deprecation logs

closes elastic#69188
pgomulka added a commit that referenced this pull request Feb 23, 2021
…) #69427

The #61474 changed the way we throttle deprecation logs, but missed a
filter to plaintext deprecation logs

closes #69188
backport(#69190)
pgomulka added a commit that referenced this pull request Feb 23, 2021
…) #69426

The #61474 changed the way we throttle deprecation logs, but missed a
filter to plaintext deprecation logs

closes #69188
backport(#69190)
@arteam arteam mentioned this pull request Dec 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Core Core issues without another label >refactoring Team:Core/Infra Meta label for core/infra team v7.10.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants