public interface Interceptor
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.
LogConfiguration.Builder#addInterceptor(Interceptor),
XLog.addInterceptor(Interceptor)| Modifier and Type | Method and Description |
|---|---|
LogItem |
intercept(LogItem log)
Intercept the log.
|