Class FilterAdapter

    • Field Detail

      • filter

        private final Filter filter
    • Constructor Detail

      • FilterAdapter

        private FilterAdapter​(Filter filter)
    • Method Detail

      • adapt

        public static Filter adapt​(Filter filter)
        Adapts a Log4j 1.x filter into a Log4j 2.x filter. Applying this method to the result of FilterWrapper.adapt(org.apache.logging.log4j.core.Filter) should return the original Log4j 2.x filter.
        Parameters:
        filter - a Log4j 1.x filter
        Returns:
        a Log4j 2.x filter or null if the parameter is null
      • addFilter

        public static Filter addFilter​(Filter first,
                                       Filter second)
        Appends one filter to another using Log4j 2.x concatenation utilities.
        Parameters:
        first -
        second -
        Returns:
      • getFilter

        public Filter getFilter()
        Gets the actual filter.
        Returns:
        the actual filter.
        Since:
        2.17.1