diff --git a/app/src/debug/java/mthmmy/utils/Report.java b/app/src/debug/java/mthmmy/utils/Report.java new file mode 100644 index 00000000..68ab3c3b --- /dev/null +++ b/app/src/debug/java/mthmmy/utils/Report.java @@ -0,0 +1,67 @@ +package mthmmy.utils; + +import android.util.Log; + +public class Report +{ + + public static void v (String TAG, String message) + { + Log.v(TAG,message); + } + + public static void v (String TAG, String message, Throwable tr) + { + Log.v(TAG,message + ": " + tr.getMessage(),tr); + } + + public static void d (String TAG, String message) + { + Log.d(TAG,message); + } + + public static void d (String TAG, String message, Throwable tr) + { + Log.d(TAG,message + ": " + tr.getMessage(),tr); + } + + public static void i (String TAG, String message) + { + Log.i(TAG,message); + } + + public static void i (String TAG, String message, Throwable tr) + { + Log.i(TAG,message + ": " + tr.getMessage(),tr); + } + + public static void w (String TAG, String message) + { + Log.w(TAG,message); + } + + public static void w (String TAG, String message, Throwable tr) + { + Log.w(TAG,message + ": " + tr.getMessage(),tr); + } + + public static void e (String TAG, String message) + { + Log.e(TAG,message); + } + + public static void e (String TAG, String message, Throwable tr) + { + Log.e(TAG,message + ": " + tr.getMessage(),tr); + } + + public static void wtf (String TAG, String message) + { + Log.wtf(TAG,message); + } + + public static void wtf (String TAG, String message, Throwable tr) + { + Log.wtf(TAG,message + ": " + tr.getMessage(),tr); + } +} \ No newline at end of file diff --git a/app/src/release/java/mthmmy.utils/Report.java b/app/src/release/java/mthmmy.utils/Report.java new file mode 100644 index 00000000..5825481f --- /dev/null +++ b/app/src/release/java/mthmmy.utils/Report.java @@ -0,0 +1,67 @@ +package mthmmy.utils; + +import android.util.Log; + +public class Report //TODO implement for release +{ + + public static void v (String TAG, String message) + { + Log.v(TAG,message); + } + + public static void v (String TAG, String message, Throwable tr) + { + Log.v(TAG,message + ": " + tr.getMessage(),tr); + } + + public static void d (String TAG, String message) + { + Log.d(TAG,message); + } + + public static void d (String TAG, String message, Throwable tr) + { + Log.d(TAG,message + ": " + tr.getMessage(),tr); + } + + public static void i (String TAG, String message) + { + Log.i(TAG,message); + } + + public static void i (String TAG, String message, Throwable tr) + { + Log.i(TAG,message + ": " + tr.getMessage(),tr); + } + + public static void w (String TAG, String message) + { + Log.w(TAG,message); + } + + public static void w (String TAG, String message, Throwable tr) + { + Log.w(TAG,message + ": " + tr.getMessage(),tr); + } + + public static void e (String TAG, String message) + { + Log.e(TAG,message); + } + + public static void e (String TAG, String message, Throwable tr) + { + Log.e(TAG,message + ": " + tr.getMessage(),tr); + } + + public static void wtf (String TAG, String message) + { + Log.wtf(TAG,message); + } + + public static void wtf (String TAG, String message, Throwable tr) + { + Log.wtf(TAG,message + ": " + tr.getMessage(),tr); + } +} \ No newline at end of file