您好,登錄后才能下訂單哦!
1.logcat -c 清除已有l(wèi)og信息
2.logcat -b main 顯示主緩沖區(qū)的log
logcat -b radio 顯示無線緩沖區(qū)的log
logcat -b events 顯示事件緩沖區(qū)的log
3.logcat -f [filename] 將log保存到指定的文件中,例如 logcat -b radio -f /data/radio.log
4.logcat -v 設(shè)置logcat輸出的格式
主要有7種:
1. brief — Display priority/tag and PID of originating process (the default format).
2. process — Display PID only.
3. tag — Display the priority/tag only.
4. thread — Display process:thread and priority/tag only.
5. raw — Display the raw log message, with no other metadata fields.
6. time — Display the date, invocation time, priority/tag, and PID of the originating process.
7. long — Display all metadata fields and separate messages with a blank lines.
比較常用的是顯示時間:logcat -v time &
5.logcat -g 查看緩沖區(qū)的大小
logcat -g main
logcat -g radio
logcat -g events
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。