Filter

A Filter is simply a class allowing you to let the LogRecord be passed or not. In the Java 8 ecosystem, it can be seen as a Predicate<LogRecord>; this class has been in Java since its 1.4 version, far before Predicate was created.

It is often bound to a particular Handler.

Get Java EE 8 High Performance now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.