#adb logcat
ex:D/PhoneGlobals( 955): - state: CONNECTED欄位1(D) - Priority,欄位2(PhoneGlobals) - Tag,欄位3(955) - PID,剩餘為訊息內容
Priority
V->Verbose (lowest priority)
D->Debug
I->Info
W->Warning
E->Error
F->Fatal
S->Silent (highest priority)
#adb logcat <TAG>[:priority]
Ex: adb logcat *:D<tag> is * (= all) and priority is:Debug
Ex: adb logcat TAGNAME:D *:S
指定只有印TAG是TAGNAME的LOG
#adb logcat -b <buffer>
buffer : main, system, radio, events, crash#adb logcat -v <format>
format : brief, process, tag, thread, raw, time, threadtime, long參考:
http://developer.android.com/tools/help/logcat.html
http://developer.android.com/tools/debugging/debugging-log.html
沒有留言:
張貼留言