正确的打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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-06
  • 2022-02-19
  • 2021-05-17
  • 2021-07-16
  • 2022-01-09
  • 2022-01-05
猜你喜欢
  • 2021-11-04
  • 2022-02-16
  • 2021-04-11
  • 2022-01-29
  • 2021-06-17
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案