Skip to content

Port log4j-jul changes from 2.x #2160

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

Merged
merged 14 commits into from
Jan 5, 2024
Merged

Port log4j-jul changes from 2.x #2160

merged 14 commits into from
Jan 5, 2024

Conversation

ppkarwasz
Copy link
Contributor

We port the changes from 2.x that are missing from main:

  • the fix of LOG4J2-3634,
  • we remove ListAppender and use the version in log4j-core-test,
  • minor style changes.

@ppkarwasz ppkarwasz self-assigned this Jan 4, 2024
@ppkarwasz ppkarwasz added this to the 3.0.0 milestone Jan 4, 2024
Piotr P. Karwasz and others added 14 commits January 5, 2024 15:41
`LogManager.getGlobal().getLevel()` is not a good fallback for the case
when all JUL logger levels are null, since its level is usually null.
Workaround a Coursier/Ivy dependency resolution bug that affects
`log4j-slf4j-impl` and `log4j-mongodb3`.

This bug also affects popular sites like MvnRepository (cf.
[`log4j-mongodb3:2.22.0`](https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-mongodb3/2.22.0)).

Closes apache#2065
This PR adds to the `log4j-script` module the missing changes from the `2.x` branch.

Since the module was created by moving classes from `log4j-core` the
comparison between branches must be done file by file.
in order to wait for the handlers to be registered in the root logger
@ppkarwasz ppkarwasz merged commit 88d2899 into apache:main Jan 5, 2024
@ppkarwasz ppkarwasz deleted the sync-jul branch January 5, 2024 16:21
@ppkarwasz ppkarwasz modified the milestones: 3.0.0, 3.0.0-beta2 Feb 17, 2024
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.

4 participants