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

Interface LogStrategy

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

Determines destination target for the logs such as Disk, Logcat etc. @see LogcatLogStrategy @see DiskLogStrategy

Source from the content-addressed store, hash-verified

10 * @see DiskLogStrategy
11 */
12public interface LogStrategy {
13
14 /**
15 * This is invoked by Logger each time a log message is processed.
16 * Interpret this method as last destination of the log in whole pipeline.
17 *
18 * @param priority is the log level e.g. DEBUG, WARNING
19 * @param tag is the given tag for the log message.
20 * @param message is the given message for the log message.
21 */
22 void log(int priority, @Nullable String tag, @NonNull String message);
23}

Callers

nothing calls this directly

Implementers 15

MockLogStrategylogger/src/test/java/com.orhanobut.log
DiskLogStrategylogger/src/main/java/com/orhanobut/log
LogcatLogStrategylogger/src/main/java/com/orhanobut/log
CsvFormatStrategyTestlogger/src/test/java/com.orhanobut.log
DiskLogStrategyTestlogger/src/test/java/com.orhanobut.log
AndroidLogAdapterTestlogger/src/test/java/com.orhanobut.log
LoggerTestlogger/src/test/java/com.orhanobut.log
DiskLogAdapterTestlogger/src/test/java/com.orhanobut.log
LogcatLogStrategyTestlogger/src/test/java/com.orhanobut.log
Loggerlogger/src/main/java/com/orhanobut/log
AndroidLogAdapterlogger/src/main/java/com/orhanobut/log
CsvFormatStrategylogger/src/main/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…