Package com.elvishew.xlog.interceptor
Class BlacklistTagsFilterInterceptor
- java.lang.Object
-
- com.elvishew.xlog.interceptor.AbstractFilterInterceptor
-
- com.elvishew.xlog.interceptor.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 Summary
Constructors Constructor Description BlacklistTagsFilterInterceptor(java.lang.Iterable<java.lang.String> blacklistTags)ConstructorBlacklistTagsFilterInterceptor(java.lang.String... blacklistTags)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanreject(LogItem log)Whether specific log should be filtered out.-
Methods inherited from class com.elvishew.xlog.interceptor.AbstractFilterInterceptor
intercept
-
-
-
-
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:
rejectin classAbstractFilterInterceptor- Parameters:
log- the specific log- Returns:
- true if the tag of the log is in the blacklist, false otherwise
-
-