2011년 3월 5일 토요일

LogCat 사용법

로그 입력 방법
 Log.변수(태그스트링, 메시지스트링);
 Log.d(“LOGCAT”, “mSKey : ”+mSKey+”, sKey : ”+sKey);

로그 확인 방법
 adb logcat –c : Clear
 adb logcat –f Filename : file로
 adb logcat –d *:Priority
 전체 Debug 메시지를 출력
 adb.exe logcat -s [태그명]:[debug level]변수명
 -s의 의미는 계속 나오게 하는 것!
 adb.exe logcat -s WindowManager:d
 Kernel Message 출력
 adb shell cat proc/kmsg
 radio 로그 확인 방법 (-b가 무슨 의미인지 모르겠지만, 없으면 안됨)
 adb.exe logcat -b radio * ⇐= radio관련 log 출력됨
 File로 저장
 adb logcat -s PowerManagerService:d > log.txt

댓글 없음:

댓글 쓰기