[Android] debug

adb shell setprop log.tag. DEBUG

public static void debug(final Class myClass, final String tag, final String msg) {
  if (Log.isLoggable(tag, Log.DEBUG)) {
    Log.d(tag, myClass.getSimpleName() + “:” + msg);
  }
}

posted on 2012-04-13 00:24  leaving  阅读(240)  评论(0编辑  收藏  举报