Beispiel #1
0
 public static void d(String TAG, String text, Throwable t) {
   if (DEBUG) {
     android.util.Log.d(TAG, text, t);
     addLog(LVL_D, TAG, text, t);
   }
 }
Beispiel #2
0
 public static void v(String TAG, String text) {
   if (DEBUG) {
     android.util.Log.v(TAG, text);
     addLog(LVL_V, TAG, text);
   }
 }
Beispiel #3
0
 private static synchronized void addLog(String level, String tag, String message, Throwable t) {
   if (DEBUG) {
     addLog(level, tag, message);
     addLog(level, tag, getStackTrace(t));
   }
 }
Beispiel #4
0
 public static void e(String TAG, String text, Throwable t) {
   android.util.Log.e(TAG, text, t);
   addLog(LVL_E, TAG, text, t);
 }
Beispiel #5
0
 public static void w(String TAG, String text) {
   android.util.Log.w(TAG, text);
   addLog(LVL_W, TAG, text);
 }
Beispiel #6
0
 public static void i(String TAG, String text) {
   android.util.Log.i(TAG, text);
   addLog(LVL_I, TAG, text);
 }