[ 
https://issues.apache.org/jira/browse/LOG4J2-2882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17165994#comment-17165994
 ] 

ASF subversion and git services commented on LOG4J2-2882:
---------------------------------------------------------

Commit 5ff0719f28bbc4cf0b8b368e170af3dc6ae56033 in logging-log4j2's branch 
refs/heads/release-2.x from Ralph Goers
[ https://gitbox.apache.org/repos/asf?p=logging-log4j2.git;h=5ff0719 ]

LOG4J2-2882 - update changes.xml


> JUL adapter ignores log filters
> -------------------------------
>
>                 Key: LOG4J2-2882
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2882
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: JUL adapter
>    Affects Versions: 2.13.3
>            Reporter: Emmanuel Bourg
>            Priority: Minor
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Setting a {{java.util.logging.Filter}} on a logger has no effect when the JUL 
> adapter is used. For example with:
> {code:java}
>         Logger logger = new CoreLoggerAdapter().getLogger("test");
>         logger.setFilter(record -> false);
>         logger.info("Test");
> {code}
> the message is still logged.
> {{org.apache.logging.log4j.jul.ApiLogger}} does check the filter in its 
> {{log(LogRecord)}} method, but the other log methods bypass it and call 
> directly the underlying log4j logger.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to