MCPcopy
hub / github.com/orhanobut/logger / LogAdapter

Interface LogAdapter

logger/src/main/java/com/orhanobut/logger/LogAdapter.java:12–33  ·  view source on GitHub ↗

Provides a common interface to emits logs through. This is a required contract for Logger. @see AndroidLogAdapter @see DiskLogAdapter

Source from the content-addressed store, hash-verified

10 * @see DiskLogAdapter
11 */
12public 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}

Callers 4

doNotLogIfNotLoggableMethod · 0.95
setupMethod · 0.65
addAdapterMethod · 0.65
logMethod · 0.65

Implementers 4

AndroidLogAdapterlogger/src/main/java/com/orhanobut/log
DiskLogAdapterlogger/src/main/java/com/orhanobut/log
AndroidLogAdapterTestlogger/src/test/java/com.orhanobut.log
DiskLogAdapterTestlogger/src/test/java/com.orhanobut.log

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…