aboutsummaryrefslogtreecommitdiff
path: root/mobileapp/src/smoots/udesign/util/PhoneDebugger.java
diff options
context:
space:
mode:
Diffstat (limited to 'mobileapp/src/smoots/udesign/util/PhoneDebugger.java')
-rwxr-xr-xmobileapp/src/smoots/udesign/util/PhoneDebugger.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/mobileapp/src/smoots/udesign/util/PhoneDebugger.java b/mobileapp/src/smoots/udesign/util/PhoneDebugger.java
new file mode 100755
index 0000000..5458ead
--- /dev/null
+++ b/mobileapp/src/smoots/udesign/util/PhoneDebugger.java
@@ -0,0 +1,23 @@
+package smoots.udesign.util;
+
+import android.util.Log;
+
+/**
+ * Util Class for the purpose of debugging.
+ *
+ * @author Sun
+ */
+public class PhoneDebugger {
+ private static boolean DEBUG = true;
+
+ /**
+ * Add the error exception to the Android log
+ * @param tag Tag for the log
+ * @param e Exception error
+ */
+ public static void debug(String tag, Exception e) {
+ if (DEBUG == true) {
+ Log.d(tag, e.getMessage());
+ }
+ }
+}