mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-29 04:55:23 +00:00
de5c902fdb
Less confusion
27 lines
607 B
Java
27 lines
607 B
Java
package com.topjohnwu.magisk.utils;
|
|
|
|
import android.util.Log;
|
|
|
|
import com.topjohnwu.magisk.BuildConfig;
|
|
import com.topjohnwu.magisk.Const;
|
|
|
|
public class Logger {
|
|
|
|
public static void debug(String line) {
|
|
if (BuildConfig.DEBUG)
|
|
Log.d(Const.DEBUG_TAG, "DEBUG: " + line);
|
|
}
|
|
|
|
public static void debug(String fmt, Object... args) {
|
|
debug(Utils.fmt(fmt, args));
|
|
}
|
|
|
|
public static void error(String line) {
|
|
Log.e(Const.DEBUG_TAG, "ERROR: " + line);
|
|
}
|
|
|
|
public static void error(String fmt, Object... args) {
|
|
error(Utils.fmt(fmt, args));
|
|
}
|
|
}
|