Package com.elvishew.xlog.interceptor
Interface Interceptor
-
- All Known Implementing Classes:
AbstractFilterInterceptor,BlacklistTagsFilterInterceptor,WhitelistTagsFilterInterceptor
public interface InterceptorInterceptors are used to intercept every log after formatting message, thread info and stack trace info, and before printing, normally we can modify or drop the log.Remember interceptors are ordered, which means earlier added interceptor will get the log first.
If any interceptor remove the log(by returning null when
intercept(LogItem)), then the interceptors behind that one won't receive the log, and the log won't be printed at all.- Since:
- 1.3.0
- See Also:
LogConfiguration.Builder.addInterceptor(Interceptor),XLog.addInterceptor(Interceptor)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LogItemintercept(LogItem log)Intercept the log.
-