Provides a common interface to emits logs through. This is a required contract for Logger. @see AndroidLogAdapter @see DiskLogAdapter
| 10 | * @see DiskLogAdapter |
| 11 | */ |
| 12 | public interface LogAdapter { |
| 13 | |
| 14 | /** |
| 15 | * Used to determine whether log should be printed out or not. |
| 16 | * |
| 17 | * @param priority is the log level e.g. DEBUG, WARNING |
| 18 | * @param tag is the given tag for the log message |
| 19 | * |
| 20 | * @return is used to determine if log should printed. |
| 21 | * If it is true, it will be printed, otherwise it'll be ignored. |
| 22 | */ |
| 23 | boolean isLoggable(int priority, @Nullable String tag); |
| 24 | |
| 25 | /** |
| 26 | * Each log will use this pipeline |
| 27 | * |
| 28 | * @param priority is the log level e.g. DEBUG, WARNING |
| 29 | * @param tag is the given tag for the log message. |
| 30 | * @param message is the given message for the log message. |
| 31 | */ |
| 32 | void log(int priority, @Nullable String tag, @NonNull String message); |
| 33 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…