Class BlacklistTagsFilterInterceptor

  • All Implemented Interfaces:
    Interceptor

    public class BlacklistTagsFilterInterceptor
    extends AbstractFilterInterceptor
    Filter out the logs with a tag that is in the blacklist.
    Since:
    1.3.0
    • Constructor Detail

      • BlacklistTagsFilterInterceptor

        public BlacklistTagsFilterInterceptor​(java.lang.String... blacklistTags)
        Constructor
        Parameters:
        blacklistTags - the blacklist tags, the logs with a tag that is in the blacklist will be filtered out
      • BlacklistTagsFilterInterceptor

        public BlacklistTagsFilterInterceptor​(java.lang.Iterable<java.lang.String> blacklistTags)
        Constructor
        Parameters:
        blacklistTags - the blacklist tags, the logs with a tag that is in the blacklist will be filtered out
    • Method Detail

      • reject

        protected boolean reject​(LogItem log)
        Whether specific log should be filtered out.
        Specified by:
        reject in class AbstractFilterInterceptor
        Parameters:
        log - the specific log
        Returns:
        true if the tag of the log is in the blacklist, false otherwise