Android Log

正确的打Log方法:

if (Log.isLoggable(TAG, Log.VERBOSE)) {

Log.v(TAG, "Internal storage is ok.");

}

adbsetprop log.tag.CalendarProvider2 VERBOSE

CalendarProvider2 == TAG 

LOG adb logcat -b main -b radio -b system -v time >log.txt
如果要抓Message的话,还要加上adb shell setprop log.tag.Mms:transaction VERBOSE

原文地址:https://www.cnblogs.com/healthy-tree/p/3145421.html