Skip to content

Instantly share code, notes, and snippets.

@kasparsj
Created April 13, 2014 19:55
Show Gist options
  • Save kasparsj/10599716 to your computer and use it in GitHub Desktop.
Save kasparsj/10599716 to your computer and use it in GitHub Desktop.
android.util.Log without the tag
public class OneLog {
public static String TAG = OneLog.class.getName();
private OneLog() {
}
public static int v(String msg) {
return android.util.Log.v(TAG, msg);
}
public static int v(String msg, Throwable tr) {
return android.util.Log.v(TAG, msg, tr);
}
public static int d(String msg) {
return android.util.Log.d(TAG, msg);
}
public static int d(String msg, Throwable tr) {
return android.util.Log.d(TAG, msg, tr);
}
public static int i(String msg) {
return android.util.Log.i(TAG, msg);
}
public static int i(String msg, Throwable tr) {
return android.util.Log.i(TAG, msg, tr);
}
public static int w(String msg) {
return android.util.Log.w(TAG, msg);
}
public static int w(String msg, Throwable tr) {
return android.util.Log.w(TAG, msg, tr);
}
public static int w(Throwable tr) {
return android.util.Log.w(TAG, tr);
}
public static int e(String msg) {
return android.util.Log.e(TAG, msg);
}
public static int e(String msg, Throwable tr) {
return android.util.Log.e(TAG, msg, tr);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment