public interface LogAdapter
限定符和类型 | 方法和说明 |
---|---|
boolean |
isLoggable(int priority,
java.lang.String tag)
Used to determine whether log should be printed out or not.
|
void |
log(int priority,
java.lang.String tag,
java.lang.String message,
java.lang.Throwable tr)
Each log will use this pipeline
|
boolean isLoggable(int priority, @Nullable java.lang.String tag)
priority
- is the log level e.g. DEBUG, WARNINGtag
- is the given tag for the log messagevoid log(int priority, @NonNull java.lang.String tag, @NonNull java.lang.String message, @Nullable java.lang.Throwable tr)
priority
- is the log level e.g. DEBUG, WARNINGtag
- is the given tag for the log message.message
- is the given message for the log message.tr
- is exception for the given message.