Skip to content

[9.0] (backport #18326) Modified logger config to link deprecation logger to root logger by default#18378

Merged
alexcams merged 1 commit into9.0from
mergify/bp/9.0/pr-18326
Oct 29, 2025
Merged

[9.0] (backport #18326) Modified logger config to link deprecation logger to root logger by default#18378
alexcams merged 1 commit into9.0from
mergify/bp/9.0/pr-18326

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Oct 29, 2025

Release notes

  • Modified logger config to link deprecation logger to root logger by default.

What does this PR do?

  • Previous default logger configuration wasn't linking deprecation logger to root (plain) logger. As a result, users who weren't aware about the additivity parameter in Apache Log4j2 logger might be overlooking the deprecation logs. With this change, the deprecation logger is linked to the root by default and will only be unlinked if the user setsadditivity parameter to false.
  • Changed JAVA_HOME deprecated log to be logged by deprecation logger.

Why is it important/What is the impact to the user?

  • This commit lets users that are using the default logger configuration to be aware about deprecation logs just following Logstash default output

Checklist

  • My code follows the style guidelines of this project
  • [ ] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files (and/or docker env variables)
  • [ ] I have added tests that prove my fix is effective or that my feature works

How to test this PR locally

  • Fetch Logstash version containing this changes, call deprecation_logger.deprecated() function with a test message and see it appears at default output as a WARN log.

Related issues


This is an automatic backport of pull request #18326 done by [Mergify](https://mergify.com).
@elasticmachine
Copy link

💚 Build Succeeded

cc @alexcams

@alexcams alexcams merged commit 5a4bcf6 into 9.0 Oct 29, 2025
9 checks passed
@alexcams alexcams deleted the mergify/bp/9.0/pr-18326 branch October 29, 2025 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2 participants