Closed
Description
Log4j 2.24.3 - AbstractFilterable
If I am not mistaken, the Javadoc of the 'AbstractFilterable#isFiltered' method is incorrect.
/**
* Determine if the LogEvent should be processed or ignored.
* @param event The LogEvent.
* @return true if the LogEvent should be processed.
*/
@Override
public boolean isFiltered(final LogEvent event) {
return filter != null && filter.filter(event) == Filter.Result.DENY;
}
I believe that correct would be:
@return {@code true} if the event is filtered and should be ignored; otherwise, {@code false} if it should be processed
Metadata
Metadata
Assignees
Labels
No labels