清除日誌
adb logcat -c
日誌級別過濾
V — Verbose (lowest priority)
D — Debug
I — Info
W — Warning
E — Error
F — Fatal
S — Silent (highest priority, on which nothing is ever printed)
adb logcat *:E
顯示錯誤級別以上的日誌
參數
-d 當前日誌輸出完就結束
-v 日誌格式,如-v time 包含time的格式
輸入到文件
adb logcat > 文件
例子
輸出錯誤日誌到log文件中
adb logcat -d -v time *:E > c:\log.log