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

Removes the deprecated packages Log4j configuration attribute #6326

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

ppkarwasz
Copy link
Contributor

@ppkarwasz ppkarwasz commented Aug 4, 2024

Description

This PR removes the packages attribute from the standard configuration file and configures the build script of jmeter-core to use the PluginProcessor contained in log4j-core.

See Log4j Plugins for more details.

See #5937.

Motivation and Context

The Log4j Core packages configuration attribute is deprecated because:

  • It triggers the scanning of packages and slows down the startup process.
  • It was replaced in version 2.0 by a faster mechanism that relies on a Log4jPlugins.dat metadata file.

How Has This Been Tested?

After the changes bin/jmeter does not print any Log4j warnings on the console.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code follows the code style of this project.
  • I have updated the documentation accordingly.

@vlsi
Copy link
Collaborator

vlsi commented Aug 5, 2024

Thank you for looking into this.

@vlsi vlsi force-pushed the fix/5937_packages_attribute branch from 50d7f1d to b968bab Compare August 6, 2024 06:57
…er The use of package scanning to locate plugins is deprecated ...

The Log4j Core `packages` configuration attribute is deprecated because:

* It triggers the scanning of the mentioned packages and slows down the
  startup process.
* It was replaced in version 2.0 by a faster mechanism that relies on a
  `Log4jPlugins.dat` metadata file. See [Log4j Plugins](https://logging.apache.org/log4j/2.x/manual/plugins.html) for more details.

This PR removes the `packages` attribute from the standard configuration
file and configures the build script of `jmeter-core` to use the
`PluginProcessor` contained in `log4j-core`.

See apache#5937.
@vlsi vlsi force-pushed the fix/5937_packages_attribute branch from b968bab to cbdfd1b Compare August 6, 2024 06:58
@vlsi vlsi merged commit cbdfd1b into apache:master Aug 6, 2024
2 of 7 checks passed
@ppkarwasz ppkarwasz deleted the fix/5937_packages_attribute branch August 6, 2024 09:16
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.

2 participants