Skip to content

Fix typo in LoggerConfig.RootLogger.Builder#withtFilter (#3369) #3372

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 8 commits into from
May 25, 2025

Conversation

JWT007
Copy link
Contributor

@JWT007 JWT007 commented Jan 8, 2025

In LoggerConfig.RootLogger.Builder:

  • Deprecated method with typo in name 'withtFilter'.
  • Added correct method 'withFilter'.

@ppkarwasz
Copy link
Contributor

@JWT007,

Can you add a changelog entry (of type added)?

Copy link

github-actions bot commented Jan 8, 2025

Job Requested goals Build Tool Version Build Outcome Build Scan®
build-macos-latest clean install 3.9.8 Build Scan PUBLISHED
build-ubuntu-latest clean install 3.9.8 Build Scan PUBLISHED
build-windows-latest clean install 3.9.8 Build Scan PUBLISHED
Generated by gradle/develocity-actions

Copy link
Contributor

@ppkarwasz ppkarwasz left a comment

Choose a reason for hiding this comment

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

We should use setFilter instead of withFilter.

I also noticed that none of our tests use the LoggerConfig builder and they call the deprecated LoggerConfig#createLogger method instead. Could you fix this?

@JWT007 JWT007 requested a review from ppkarwasz February 16, 2025 19:34
Copy link
Contributor

@ppkarwasz ppkarwasz left a comment

Choose a reason for hiding this comment

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

LGTM

@ppkarwasz ppkarwasz added this to the 2.25.0 milestone Apr 13, 2025
@ppkarwasz
Copy link
Contributor

@JWT007,

Your two last commits are not signed and linked to the @jethomas-tsi account. Could you resign them, so I can merge the PR?

git --force-rebase --gpg-sign origin/2.x
git push -f

BTW: if you wait for the required checks to pass, feel free to merge this yourself.

JWT007 added 4 commits May 25, 2025 14:51
…der (apache#3369)

Deprecated LoggerConfig.RootLogger.Builder#withtFilter(Filter).

Added LoggerConfig.RoottLogger.Builder#withFilter(Filtter)
+ properly delegated from deprecated method to new method
+ updated affected package-info versions for baseline
* switched tests to use Builders instead of createLogger
* changed new LoggerConig.RootLogger.Builder#withFilter to LoggerConfig.RootLogger.Builder#setFilter
* deprecated LoggerConfig.Builder.withFilter and added LoggerConig.Builder.setFilter
* moved changelog to correct .2.x.x directory
@ppkarwasz ppkarwasz force-pushed the bugfix/LOG4J-3369 branch from 78cc906 to d496f03 Compare May 25, 2025 12:53
ppkarwasz added 4 commits May 25, 2025 14:57
The `o.a.l.l.core.async` package was modified indirectly: `AsyncLoggerConfig` inherited the changes to `LoggerConfig`.
@ppkarwasz ppkarwasz enabled auto-merge (squash) May 25, 2025 13:16
@ppkarwasz ppkarwasz merged commit 46db3f9 into apache:2.x May 25, 2025
7 checks passed
@github-project-automation github-project-automation bot moved this from To triage to Done in Log4j bug tracker May 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants