-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Fix typo in LoggerConfig.RootLogger.Builder#withtFilter (#3369) #3372
base: 2.x
Are you sure you want to change the base?
Conversation
…der (apache#3369) Deprecated LoggerConfig.RootLogger.Builder#withtFilter(Filter). Added LoggerConfig.RoottLogger.Builder#withFilter(Filtter)
Can you add a changelog entry (of type |
+ properly delegated from deprecated method to new method + updated affected package-info versions for baseline
There was a problem hiding this 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?
log4j-core/src/main/java/org/apache/logging/log4j/core/config/LoggerConfig.java
Outdated
Show resolved
Hide resolved
* 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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
In LoggerConfig.RootLogger.Builder: