logcat 基本使用

adb logcat -c    //清空之前的日誌

adb logcat -v time >  d:/sss.log       //將當前日誌輸出到d盤的sss.log中  sss.log不存在會自動建立,存在則覆蓋原有的

adb logcat -s 「xxx」       //輸出當前以xxx爲TAG的日誌, 過濾日誌的   LOG.i("xxx","YYYYY")

adb logcat   //將日誌打印在當前adb 窗口日誌

相關文章
相關標籤/搜索