Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.13.3
-
None
-
Patch
Description
Setting a java.util.logging.Filter on a logger has no effect when the JUL adapter is used. For example with:
Logger logger = new CoreLoggerAdapter().getLogger("test"); logger.setFilter(record -> false); logger.info("Test");
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.
Attachments
Issue Links
- links to