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.
比較常用的是顯示時(shí)間:logcat -v time &
5.logcat -g 查看緩沖區(qū)的大小
logcat -g main
logcat -g radio
logcat -g events
另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)scvps.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡(jiǎn)單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢(shì),專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場(chǎng)景需求。