Android
2012.06.08 17:24

Android Log (logcat) 보기

조회 수 27264 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print

Kernel Log

>adb shell

#cat /proc/kmsg


파일로 저장

>adb shell cat proc/kmsg > kmsg.txt


LogCat Main Log

>adb logcat -d > main.txt

>adb logcat -b main -d > main.txt


LogCat System Log

>adb logcat -b system -d > system.txt


LogCat Events Log

>adb logcat -b events -d > events.txt


LogCat Radio Log

>adb logcat -b radio -d > radio.txt



Time Stamp를 붙이려면

>adb logcat -v time -b main -d > main.txt

>adb logcat -v time -b system -d > system.txt

>adb logcat -v time -b events -d > events.txt

>adb logcat -v time -b radio -d > radio.txt



LogCat 보면서 저장하기

>adb logcat -v time -b main -b radio -b events -b system 2>&1|tee 00_logcat.log

2>&1|tee build.log

1 은 standard (표준출력)

2 는 standard error (표준 에러)

그러므로 2>&1은 표준 에러를 표준 출력으로 redirection

build.log 앞에 > (redirection) 대신 | tee가 들어간 이유는 redirection으로 처리할경우 build.log가 표준출력 내용을 먹어버리기 때문에 화면출력과 파일 출력을 동시에 하기위해서 사용


SD Card에 저장하기

>adb root

>adb shell

#cat /proc/kmsg > /sdcard/kmsg.txt & logcat -v time -b main -d > main.txt & logcat -v time -b system -d > system.txt &



[ 관련 글 ]
TAG •

Dreamy의 코드 스크랩

내가 모으고 내가 보는

List of Articles
번호 분류 제목 날짜 조회 수 추천 수
476 Pi 회로부품 메모 1 secret 2019.08.09 1 0
475 Pi OP AMP의 활용 2019.08.05 10017 0
474 Python Image 기반 Steganography 예제 1 2019.07.17 25635 0
473 업무 Pen Testing 툴 요약 secret 2019.07.16 0 0
472 일반 SQL Injection 우회 정리 2019.07.10 8183 0
471 C C에서 파일 존재여부 체크 (check file exist) 2019.07.02 18630 0
470 LINUX gdb 쓸때 상용구 secret 2019.06.26 0 0
469 Pi 라즈베리파이 내 작업 명령 secret 2019.06.10 0 0
468 일반 범용 레지 스터(eax, ebx, ecx, edx, esi, edi, esp, ebp) 2019.06.03 10160 0
467 Python 디렉토리 없으면 만들기 2019.03.30 6170 0
466 Python 줄 바꿈 없이 출력하는 방법 2019.03.30 7214 0
465 LINUX Ubuntu TFTP 서버 2019.10.30 7243 0
464 LINUX Ubuntu에서 Python 버전을 변경하는 방법 2019.03.29 12400 0
463 Python Google Colab에서 파일 업로드/다운로드 팁 2019.03.06 36816 0
462 Python pandas, matplot 자주사용하는 코드 2019.03.06 5206 0
목록
Board Pagination ‹ Prev 1 2 3 4 5 6 7 8 9 10 ... 34 Next ›
/ 34

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소

Designed by sketchbooks.co.kr / sketchbook5 board skin

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5