Class InvertFilter

  • All Implemented Interfaces:
    Filter

    public final class InvertFilter
    extends Object
    implements Filter
    An inverting filter.
    • Constructor Detail

      • InvertFilter

        public InvertFilter​(Filter target)
        Construct a new instance.
        Parameters:
        target - the target filter
    • Method Detail

      • isLoggable

        public boolean isLoggable​(LogRecord record)
        Determine whether a log record passes this filter.
        Specified by:
        isLoggable in interface Filter
        Parameters:
        record - the log record
        Returns:
        true if the target filter returns false, false otherwise