Android
2012.06.08 17:24

Android Log (logcat) 보기

조회 수 27453 댓글 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
번호 분류 제목 날짜 조회 수 추천 수
146 C# 델리게이트와 이벤트(Delegates and Events) 2013.08.14 10317 0
145 MFC 도스 커맨드 실행하기 1 2009.09.01 49450 0
144 LINUX 도우 gvim에서 사용하고 있는 _vimrc 파일 2015.01.26 8602 0
143 C# 디렉토리 경로 입력 받기 2010.03.15 38864 0
142 Python 디렉토리 없으면 만들기 2019.03.30 6400 0
141 일반 디버깅용 string 프로그램 소스 2012.02.06 15781 0
140 일반 딥러닝 공부 방법 secret 2017.10.23 0 0
139 일반 딥러닝/머신러닝/인공지능 secret 2017.08.16 0 0
138 Pi 라즈베리 파이 B+ GPIO file 2015.07.12 12264 0
137 Pi 라즈베리파이 3, Spec & PIN Map file 2017.02.06 31015 0
136 Pi 라즈베리파이 gpio utility 2017.02.15 6638 0
135 Pi 라즈베리파이 PI CAMERA 설치하기 2018.04.24 9702 0
134 Pi 라즈베리파이 내 작업 명령 secret 2019.06.10 0 0
133 Pi 라즈베리파이 웹페이지 자동 실행 설정 방법 secret 2020.11.03 0 0
132 Pi 라즈베리파이 음성인식 S/W 2018.04.26 6775 0
목록
Board Pagination ‹ Prev 1 ... 20 21 22 23 24 25 26 27 28 29 ... 34 Next ›
/ 34

나눔글꼴 설치 안내


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

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

설치 취소

Designed by sketchbooks.co.kr / sketchbook5 board skin

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5