Whoop whoop

This commit is contained in:
d8ahazard
2016-09-21 16:55:20 -05:00
parent 5d8f9f1a5a
commit 41a5639711
22 changed files with 574 additions and 62 deletions
@@ -0,0 +1,20 @@
package com.topjohnwu.magisk.utils;
import android.util.Log;
public class Logger {
private static final String LOG_TAG = "Magisk";
public static void dh(String msg, Object... args) {
if (PrefHelper.CheckBool("developer_logging")) {
if (args.length == 1 && args[0] instanceof Throwable) {
Log.d(LOG_TAG, msg, (Throwable) args[0]);
} else {
Log.d(LOG_TAG, String.format(msg, args));
}
}
}
}