To save LogCat to a text file open up a terminal window and type:
adb logcat -d > logcat.txt
This will create a file named "logcat.txt" in your current directory. The -d option indicates that you are dumping the current contents and then exiting. If you do not use this option new lines of LogCat will be appended to the file, which may be useful.
Since LogCat can get pretty large very quickly you may want to clear it every once in a while, you can do this easily from Eclipse or from a terminal window using the command:
adb logcat -c
Note that running adb logcat without any options will display the contents of LogCat in your terminal window.
더 자세한 내용은..
== 추가 ==
D:\Android\android-sdk\platform-tools>adb logcat | findstr 9196 > logcat.txt
여기선 프로세스ID 9196 인 로그를 logcat.txt 에 저장하기,
9196 부분에 필터 역활을 할 텍스트를 넣으면 됨... 윈도 cmd 의 findstr 이 unix계열의 grep 역활이라고 보면 된다.
'Bite Bits > Java, Android' 카테고리의 다른 글
안드로이드 keystore 패스워드 바꾸기 (keytool 사용법) (0) | 2017.07.12 |
---|---|
adb 로 특정 앱 프로세스 logcat 찍기 (0) | 2017.03.28 |
Android Studio 에서 사용할 JDK 설정하기 (0) | 2016.06.15 |
안드로이드 keystore 내용 확인하기 (0) | 2015.11.06 |
Java was started but returned exit code=13 (이클립스 실행 오류) (0) | 2015.10.28 |