Interface Filterable

    • Method Detail

      • addFilter

        void addFilter​(Filter filter)
        Adds a new Filter. If a Filter already exists it is converted to a CompositeFilter.
        Parameters:
        filter - The Filter to add.
      • removeFilter

        void removeFilter​(Filter filter)
        Removes a Filter.
        Parameters:
        filter - The Filter to remove.
      • getFilter

        Filter getFilter()
        Returns an Iterator for all the Filters.
        Returns:
        an Iterator for all the Filters.
      • hasFilter

        boolean hasFilter()
        Determine if a Filter is present.
        Returns:
        true if a Filter is present, false otherwise.
      • isFiltered

        boolean isFiltered​(LogEvent event)
        Determines if the event should be filtered.
        Parameters:
        event - The LogEvent.
        Returns:
        true if the event should be filtered, false otherwise.