Filter

Use

A filter restricts or alter the output behavior further. It can be added to both the log controller and the log. Multiple filters are permitted for each log controller and/or log.

Implementation

The filter implementation has to be done by you, according to the interface defined in the package. Basically, this evaluates the LogRecord object and veto accordingly. The name of the only method indicates that a Boolean true is returned when the logRecord passes the filter, otherwise false is returned.

Since the implementation is done by users, the class name of the filter is not known in advance. If the user-defined filter class is to be specified in the configuration file, a fully qualified class name has to be used.