package net.x4a42.volksempfaenger;

public class Log {
	public static final int ASSERT = android.util.Log.ASSERT;
	public static final int DEBUG = android.util.Log.DEBUG;
	public static final int ERROR = android.util.Log.ERROR;
	public static final int INFO = android.util.Log.INFO;
	public static final int VERBOSE = android.util.Log.VERBOSE;
	public static final int WARN = android.util.Log.WARN;

	public static String getTag(Class<? extends Object> cls) {
		return cls == null ? "<null>" : cls.getSimpleName();
	}

	private static String getTag(Object obj) {
		return obj == null ? "<null>" : getTag(obj.getClass());
	}

	// Standard android.util.Log methods
	public static int d(String tag, String msg) {
		return android.util.Log.d(tag, msg);
	}

	public static int d(String tag, String msg, Throwable tr) {
		return android.util.Log.d(tag, msg, tr);
	}

	public static int e(String tag, String msg) {
		return android.util.Log.e(tag, msg);
	}

	public static int e(String tag, String msg, Throwable tr) {
		return android.util.Log.e(tag, msg, tr);
	}

	public static String getStackTraceString(Throwable tr) {
		return android.util.Log.getStackTraceString(tr);
	}

	public static int i(String tag, String msg) {
		return android.util.Log.i(tag, msg);
	}

	public static int i(String tag, String msg, Throwable tr) {
		return android.util.Log.i(tag, msg, tr);
	}

	public static boolean isLoggable(String tag, int level) {
		return android.util.Log.isLoggable(tag, level);
	}

	public static int println(int priority, String tag, String msg) {
		return android.util.Log.println(priority, tag, msg);
	}

	public static int v(String tag, String msg) {
		return android.util.Log.v(tag, msg);
	}

	public static int v(String tag, String msg, Throwable tr) {
		return android.util.Log.v(tag, msg, tr);
	}

	public static int w(String tag, Throwable tr) {
		return android.util.Log.w(tag, tr);
	}

	public static int w(String tag, String msg, Throwable tr) {
		return android.util.Log.w(tag, msg, tr);
	}

	public static int w(String tag, String msg) {
		return android.util.Log.w(tag, msg);
	}

	public static int wtf(String tag, Throwable tr) {
		return android.util.Log.wtf(tag, tr);
	}

	public static int wtf(String tag, String msg) {
		return android.util.Log.wtf(tag, msg);
	}

	public static int wtf(String tag, String msg, Throwable tr) {
		return android.util.Log.w(tag, msg, tr);
	}

	// Custom methods
	public static int d(Object tagObj, String msg) {
		return android.util.Log.d(getTag(tagObj), msg);
	}

	public static int d(Object tagObj, String msg, Throwable tr) {
		return android.util.Log.d(getTag(tagObj), msg, tr);
	}

	public static int e(Object tagObj, String msg) {
		return android.util.Log.e(getTag(tagObj), msg);
	}

	public static int e(Object tagObj, String msg, Throwable tr) {
		return android.util.Log.e(getTag(tagObj), msg, tr);
	}

	public static int i(Object tagObj, String msg) {
		return android.util.Log.i(getTag(tagObj), msg);
	}

	public static int i(Object tagObj, String msg, Throwable tr) {
		return android.util.Log.i(getTag(tagObj), msg, tr);
	}

	public static int println(int priority, Object tagObj, String msg) {
		return android.util.Log.println(priority, getTag(tagObj), msg);
	}

	public static int v(Object tagObj, String msg) {
		return android.util.Log.v(getTag(tagObj), msg);
	}

	public static int v(Object tagObj, String msg, Throwable tr) {
		return android.util.Log.v(getTag(tagObj), msg, tr);
	}

	public static int w(Object tagObj, Throwable tr) {
		return android.util.Log.w(getTag(tagObj), tr);
	}

	public static int w(Object tagObj, String msg, Throwable tr) {
		return android.util.Log.w(getTag(tagObj), msg, tr);
	}

	public static int w(Object tagObj, String msg) {
		return android.util.Log.w(getTag(tagObj), msg);
	}

	public static int wtf(Object tagObj, Throwable tr) {
		return android.util.Log.wtf(getTag(tagObj), tr);
	}

	public static int wtf(Object tagObj, String msg) {
		return android.util.Log.wtf(getTag(tagObj), msg);
	}

	public static int wtf(Object tagObj, String msg, Throwable tr) {
		return android.util.Log.w(getTag(tagObj), msg, tr);
	}
}

@@ -2466,33 +2466,16 @@
 %09return 
-android.util.Log.
 d(getTag
@@ -2482,32 +2482,32 @@
 (tagObj), msg);%0A
+
 %09%7D%0A%0A%09public stat
@@ -2567,33 +2567,16 @@
 %09return 
-android.util.Log.
 d(getTag
@@ -2658,33 +2658,16 @@
 %09return 
-android.util.Log.
 e(getTag
@@ -2759,33 +2759,16 @@
 %09return 
-android.util.Log.
 e(getTag
@@ -2850,33 +2850,16 @@
 %09return 
-android.util.Log.
 i(getTag
@@ -2951,33 +2951,16 @@
 %09return 
-android.util.Log.
 i(getTag
@@ -3062,33 +3062,16 @@
 %09return 
-android.util.Log.
 println(
@@ -3165,33 +3165,16 @@
 %09return 
-android.util.Log.
 v(getTag
@@ -3266,33 +3266,16 @@
 %09return 
-android.util.Log.
 v(getTag
@@ -3359,33 +3359,16 @@
 %09return 
-android.util.Log.
 w(getTag
@@ -3459,33 +3459,16 @@
 %09return 
-android.util.Log.
 w(getTag
@@ -3550,33 +3550,16 @@
 %09return 
-android.util.Log.
 w(getTag
@@ -3641,33 +3641,16 @@
 %09return 
-android.util.Log.
 wtf(getT
@@ -3731,33 +3731,16 @@
 %09return 
-android.util.Log.
 wtf(getT
@@ -3836,34 +3836,19 @@
 %09return 
-android.util.Log.w
+wtf
 (getTag(

Use wrapper methods in Log class. This will be imporant later.