2013-04-09 7 views
2

무엇이 잘못 되었나요? 내 logcat 이틀 동안 나를 괴롭혔다. 장치가 테스트에 연결되면 내 app을 실행하지 않지만 logcat이 계속 메시지를 보냅니다. 내 앱을 실행하면 엄청난 양의 데이터로 앱 로그를 찾을 수 없습니다. 누군가가 이것을 피하고 내 응용 프로그램의 로그 만 볼 수 있도록 제안 할 수 있습니까? 아래는 지속적으로 흐르는 logcat의 흐름입니다. 나는 htc로 테스트하고있다.Logcat에 계속 메시지가 표시됩니다.

04-09 09:27:10.007: D/dalvikvm(843): GC_EXPLICIT freed 128K, 43% free 3530K/6151K, external 0K/0K, paused 142ms 
04-09 09:27:10.027: I/LogFilter(843): Couldn't find the mandatory "Host" HTTP header. 
04-09 09:27:10.027: I/LogService(843): 2013-04-09 09:27:10 127.0.0.1 - 127.0.0.1 8182 POST /library/do/summary - 200 64 53 1304 http://null - - 
04-09 09:27:10.037: D/nicolas(843): HttpServerHelper commit 
04-09 09:27:10.037: D/nicolas(843): sendResponse 1 
04-09 09:27:10.057: D/nicolas(843): writeResponseBody 
04-09 09:27:10.238: D/dalvikvm(843): GC_EXPLICIT freed 50K, 43% free 3522K/6151K, external 0K/0K, paused 158ms 
04-09 09:27:10.408: D/dalvikvm(843): GC_EXPLICIT freed 4K, 43% free 3537K/6151K, external 0K/0K, paused 140ms 
04-09 09:27:10.408: I/LogFilter(843): Couldn't find the mandatory "Host" HTTP header. 
04-09 09:27:10.468: D/com.fd.httpd(843): sdcard phone type != 1 
04-09 09:27:10.478: D/com.fd.httpd(843): emmc phone type != 1 
04-09 09:27:10.498: I/com.fd.httpd(843): 1365479830502--enter query. 
04-09 09:27:10.558: I/LogService(843): 2013-04-09 09:27:10 127.0.0.1 - 127.0.0.1 8182 GET /info/ - 200 1471 0 513 http://null - - 
04-09 09:27:10.568: D/nicolas(843): HttpServerHelper commit 
04-09 09:27:10.568: I/Server(843): Addition of the standard header "pragma" is discouraged as a future versions of the Restlet API will directly support it. 
04-09 09:27:10.578: W/Server(843): Addition of the standard header "cache-control" is not allowed. Please use the equivalent property in the Restlet API. 
04-09 09:27:10.578: W/Server(843): Addition of the standard header "expires" is not allowed. Please use the equivalent property in the Restlet API. 
04-09 09:27:10.578: D/nicolas(843): sendResponse 1 
04-09 09:27:10.578: D/nicolas(843): writeResponseBody 
04-09 09:27:10.598: I/com.fd.httpd(843): 1365479830607--leave query. 
04-09 09:27:10.598: I/com.fd.httpd(843): sum size = 0 
04-09 09:27:10.608: I/com.fd.httpd(843): Thread stateRUNNABLE 
04-09 09:27:10.688: I/LogService(843): 2013-04-09 09:27:10 127.0.0.1 - 127.0.0.1 8182 POST /library/do/summary - 200 64 53 252 http://null - - 
04-09 09:27:10.688: D/nicolas(843): HttpServerHelper commit 
04-09 09:27:10.688: D/nicolas(843): sendResponse 1 
04-09 09:27:10.698: D/nicolas(843): writeResponseBody 
04-09 09:27:10.838: D/dalvikvm(843): GC_EXPLICIT freed 156K, 43% free 3525K/6151K, external 0K/0K, paused 124ms 
04-09 09:27:10.848: I/LogFilter(843): Couldn't find the mandatory "Host" HTTP header. 
04-09 09:27:10.898: I/com.fd.httpd(843): 1365479830906--enter query. 
04-09 09:27:10.958: I/com.fd.httpd(843): 1365479830966--leave query. 
04-09 09:27:10.958: I/com.fd.httpd(843): sum size = 0 
04-09 09:27:10.958: I/com.fd.httpd(843): Thread stateRUNNABLE 
04-09 09:27:11.048: I/LogService(843): 2013-04-09 09:27:11 127.0.0.1 - 127.0.0.1 8182 POST /library/do/summary - 200 64 53 171 http://null - - 
04-09 09:27:11.048: D/nicolas(843): HttpServerHelper commit 
04-09 09:27:11.048: D/nicolas(843): sendResponse 1 
04-09 09:27:11.058: D/nicolas(843): writeResponseBody 
04-09 09:27:11.199: D/dalvikvm(843): GC_EXPLICIT freed 93K, 43% free 3530K/6151K, external 0K/0K, paused 133ms 
04-09 09:27:11.209: I/LogFilter(843): Couldn't find the mandatory "Host" HTTP header. 
04-09 09:27:11.249: I/com.fd.httpd(843): 1365479831256--enter query. 
04-09 09:27:11.319: I/com.fd.httpd(843): 1365479831324--leave query. 
04-09 09:27:11.319: I/com.fd.httpd(843): sum size = 0 
04-09 09:27:11.319: I/com.fd.httpd(843): Thread stateRUNNABLE 
04-09 09:27:11.349: I/LogService(843): 2013-04-09 09:27:11 127.0.0.1 - 127.0.0.1 8182 POST /library/do/summary - 200 64 53 119 http://null - - 
04-09 09:27:11.349: D/nicolas(843): HttpServerHelper commit 
04-09 09:27:11.349: D/nicolas(843): sendResponse 1 
04-09 09:27:11.359: D/nicolas(843): writeResponseBody 
04-09 09:27:11.519: D/dalvikvm(843): GC_EXPLICIT freed 103K, 43% free 3522K/6151K, external 0K/0K, paused 147ms 
04-09 09:27:11.539: I/LogFilter(843): Couldn't find the mandatory "Host" HTTP header. 
04-09 09:27:11.569: I/com.fd.httpd(843): 1365479831577--enter query. 
04-09 09:27:11.649: I/com.fd.httpd(843): 1365479831651--leave query. 
04-09 09:27:11.649: I/com.fd.httpd(843): sum size = 0 
04-09 09:27:11.649: I/com.fd.httpd(843): Thread stateRUNNABLE 
04-09 09:27:11.799: D/dalvikvm(843): GC_EXPLICIT freed 71K, 43% free 3529K/6151K, external 0K/0K, paused 139ms 
04-09 09:27:11.809: I/LogService(843): 2013-04-09 09:27:11 127.0.0.1 - 127.0.0.1 8182 POST /library/do/summary - 200 64 53 261 http://null - - 
04-09 09:27:11.819: I/LogFilter(843): Couldn't find the mandatory "Host" HTTP header. 
04-09 09:27:11.829: D/nicolas(843): HttpServerHelper commit 
04-09 09:27:11.839: D/nicolas(843): sendResponse 1 
04-09 09:27:11.849: D/nicolas(843): writeResponseBody 
04-09 09:27:11.989: D/dalvikvm(843): GC_EXPLICIT freed 45K, 43% free 3526K/6151K, external 0K/0K, paused 123ms 
04-09 09:27:12.119: D/dalvikvm(843): GC_EXPLICIT freed 1K, 43% free 3525K/6151K, external 0K/0K, paused 115ms 
04-09 09:27:12.129: I/LogFilter(843): Couldn't find the mandatory "Host" HTTP header. 
04-09 09:27:12.180: D/com.fd.httpd(843): sdcard phone type != 1 
04-09 09:27:12.190: D/com.fd.httpd(843): emmc phone type != 1 
04-09 09:27:12.210: I/com.fd.httpd(843): 1365479832225--enter query. 
04-09 09:27:12.260: I/LogService(843): 2013-04-09 09:27:12 127.0.0.1 - 127.0.0.1 8182 GET /info/ - 200 1471 0 429 http://null - - 
04-09 09:27:12.260: D/nicolas(843): HttpServerHelper commit 
04-09 09:27:12.270: I/Server(843): Addition of the standard header "pragma" is discouraged as a future versions of the Restlet API will directly support it. 
04-09 09:27:12.270: W/Server(843): Addition of the standard header "cache-control" is not allowed. Please use the equivalent property in the Restlet API. 
04-09 09:27:12.270: W/Server(843): Addition of the standard header "expires" is not allowed. Please use the equivalent property in the Restlet API. 
04-09 09:27:12.270: D/nicolas(843): sendResponse 1 
04-09 09:27:12.280: D/nicolas(843): writeResponseBody 
04-09 09:27:12.430: I/com.fd.httpd(843): 1365479832442--leave query. 
04-09 09:27:12.430: I/com.fd.httpd(843): sum size = 0 
04-09 09:27:12.430: I/com.fd.httpd(843): Thread stateRUNNABLE 
04-09 09:27:12.560: I/LogService(843): 2013-04-09 09:27:12 127.0.0.1 - 127.0.0.1 8182 POST /library/do/summary - 200 64 53 403 http://null - - 
04-09 09:27:12.570: D/nicolas(843): HttpServerHelper commit 
04-09 09:27:12.570: D/nicolas(843): sendResponse 1 
04-09 09:27:12.580: D/nicolas(843): writeResponseBody 
04-09 09:27:12.750: D/dalvikvm(843): GC_EXPLICIT freed 152K, 43% free 3535K/6151K, external 0K/0K, paused 159ms 
04-09 09:27:12.770: I/LogFilter(843): Couldn't find the mandatory "Host" HTTP header. 
04-09 09:27:12.810: I/com.fd.httpd(843): 1365479832825--enter query. 
04-09 09:27:12.940: I/com.fd.httpd(843): 1365479832950--leave query. 
04-09 09:27:12.940: I/com.fd.httpd(843): sum size = 0 
04-09 09:27:12.940: I/com.fd.httpd(843): Thread stateRUNNABLE 
04-09 09:27:13.070: I/LogService(843): 2013-04-09 09:27:13 127.0.0.1 - 127.0.0.1 8182 POST /library/do/summary - 200 64 53 289 http://null - - 
04-09 09:27:13.080: D/nicolas(843): HttpServerHelper commit 
04-09 09:27:13.080: D/nicolas(843): sendResponse 1 
04-09 09:27:13.090: D/nicolas(843): writeResponseBody 
04-09 09:27:13.261: D/dalvikvm(843): GC_EXPLICIT freed 97K, 43% free 3533K/6151K, external 0K/0K, paused 163ms 
04-09 09:27:13.271: I/LogFilter(843): Couldn't find the mandatory "Host" HTTP header. 
04-09 09:27:13.441: D/dalvikvm(843): GC_EXPLICIT freed 34K, 43% free 3525K/6151K, external 0K/0K, paused 127ms 
04-09 09:27:13.461: I/LogFilter(843): Couldn't find the mandatory "Host" HTTP header. 
04-09 09:27:13.481: I/com.fd.httpd(843): 1365479833498--enter query. 
04-09 09:27:13.631: D/dalvikvm(843): GC_EXPLICIT freed 63K, 43% free 3536K/6151K, external 0K/0K, paused 125ms 
04-09 09:27:13.681: D/com.fd.httpd(843): sdcard phone type != 1 
04-09 09:27:13.691: D/com.fd.httpd(843): emmc phone type != 1 
04-09 09:27:13.731: I/com.fd.httpd(843): 1365479833746--leave query. 
04-09 09:27:13.731: I/com.fd.httpd(843): sum size = 0 
04-09 09:27:13.731: I/com.fd.httpd(843): Thread stateRUNNABLE 
04-09 09:27:13.751: I/LogService(843): 2013-04-09 09:27:13 127.0.0.1 - 127.0.0.1 8182 POST /library/do/summary - 200 64 53 461 http://null - - 
04-09 09:27:13.771: D/nicolas(843): HttpServerHelper commit 
04-09 09:27:13.771: D/nicolas(843): sendResponse 1 
04-09 09:27:13.791: D/nicolas(843): writeResponseBody 
04-09 09:27:13.791: I/LogService(843): 2013-04-09 09:27:13 127.0.0.1 - 127.0.0.1 8182 GET /info/ - 200 1471 0 293 http://null - - 
04-09 09:27:13.791: D/nicolas(843): HttpServerHelper commit 
04-09 09:27:13.801: I/Server(843): Addition of the standard header "pragma" is discouraged as a future versions of the Restlet API will directly support it. 
04-09 09:27:13.801: W/Server(843): Addition of the standard header "cache-control" is not allowed. Please use the equivalent property in the Restlet API. 
04-09 09:27:13.941: D/dalvikvm(843): GC_EXPLICIT freed 70K, 43% free 3541K/6151K, external 0K/0K, paused 134ms 
04-09 09:27:13.941: W/Server(843): Addition of the standard header "expires" is not allowed. Please use the equivalent property in the Restlet API. 
04-09 09:27:13.941: D/nicolas(843): sendResponse 1 
04-09 09:27:13.961: I/LogFilter(843): Couldn't find the mandatory "Host" HTTP header. 
04-09 09:27:13.961: D/nicolas(843): writeResponseBody 
04-09 09:27:14.011: I/com.fd.httpd(843): 1365479834023--enter query. 
04-09 09:27:14.081: I/com.fd.httpd(843): 1365479834094--leave query. 
04-09 09:27:14.081: I/com.fd.httpd(843): sum size = 0 
04-09 09:27:14.081: I/com.fd.httpd(843): Thread stateRUNNABLE 
04-09 09:27:14.101: I/com.fd.httpd(843): 1365479834113--leave applyBatch. 
04-09 09:27:14.111: I/LogService(843): 2013-04-09 09:27:14 127.0.0.1 - 127.0.0.1 8182 POST /library/do/summary - 200 64 53 125 http://null - - 
04-09 09:27:14.121: D/nicolas(843): HttpServerHelper commit 
04-09 09:27:14.121: D/nicolas(843): sendResponse 1 
04-09 09:27:14.131: D/nicolas(843): writeResponseBody 
04-09 09:27:14.262: D/dalvikvm(843): GC_EXPLICIT freed 140K, 43% free 3512K/6151K, external 0K/0K, paused 119ms 
04-09 09:27:14.272: I/LogFilter(843): Couldn't find the mandatory "Host" HTTP header. 
04-09 09:27:14.332: I/com.fd.httpd(843): 1365479834330--enter query. 
04-09 09:27:14.392: I/com.fd.httpd(843): 1365479834406--leave query. 
04-09 09:27:14.392: I/com.fd.httpd(843): sum size = 0 
04-09 09:27:14.392: I/com.fd.httpd(843): Thread stateRUNNABLE 
04-09 09:27:14.422: I/LogService(843): 2013-04-09 09:27:14 127.0.0.1 - 127.0.0.1 8182 POST /library/do/summary - 200 64 53 115 http://null - - 
04-09 09:27:14.422: D/nicolas(843): HttpServerHelper commit 
04-09 09:27:14.422: D/nicolas(843): sendResponse 1 
04-09 09:27:14.432: D/nicolas(843): writeResponseBody 
04-09 09:27:14.562: D/dalvikvm(843): GC_EXPLICIT freed 95K, 43% free 3517K/6151K, external 0K/0K, paused 119ms 
04-09 09:27:14.572: I/LogFilter(843): Couldn't find the mandatory "Host" HTTP header. 
04-09 09:27:14.632: I/com.fd.httpd(843): 1365479834644--enter query. 
04-09 09:27:14.682: I/com.fd.httpd(843): 1365479834693--enter applyBatch. 
04-09 09:27:14.712: I/com.fd.httpd(843): 1365479834728--leave query. 
04-09 09:27:14.722: I/com.fd.httpd(843): sum size = 0 
04-09 09:27:14.722: I/com.fd.httpd(843): Thread stateRUNNABLE 
04-09 09:27:14.732: I/LogService(843): 2013-04-09 09:27:14 127.0.0.1 - 127.0.0.1 8182 POST /library/do/summary - 200 64 53 149 http://null - - 
04-09 09:27:14.742: D/nicolas(843): HttpServerHelper commit 
04-09 09:27:14.752: D/nicolas(843): sendResponse 1 
04-09 09:27:14.762: D/nicolas(843): writeResponseBody 
04-09 09:27:14.912: D/dalvikvm(843): GC_EXPLICIT freed 103K, 43% free 3517K/6151K, external 0K/0K, paused 144ms 
04-09 09:27:14.932: I/LogFilter(843): Couldn't find the mandatory "Host" HTTP header. 
04-09 09:27:14.962: I/com.fd.httpd(843): 1365479834978--enter query. 
04-09 09:27:15.112: D/dalvikvm(843): GC_EXPLICIT freed 68K, 43% free 3523K/6151K, external 0K/0K, paused 136ms 
+0

당신은 자세한 정보를 의미합니까? 왜냐하면 나는 이미 그것들을 시도했기 때문이다. 불운. – Apparatus

+0

앱의 출력을 분리하는 여러 가지 방법이 있습니다. 어떻게 logcat을보고 계십니까? Eclipse 또는 명령 행을 통해? 명령 줄, 그렇다면 어떤 OS? 이클립스를 통해 –

+0

번호. – Apparatus

답변

3

이 방법은 logcat에 들어오는 원하지 않는 로그를 피하기위한 것이 아니라 특정 로그 만 보는 것입니다.

ADB 쉘 로그 캣 -s D/니콜라스

또는

ADB 쉘 로그 캣 | 그렙 D/니콜라스

만 태그 "니콜라스"을 기록 보려는 예를 들어

+1

죄송합니다. 답변을 얻지 못했습니다. 이것보다 자세한 내용을 알려 줄 수 있습니까? – Apparatus

+0

님이 답변을 수정했습니다. – Rilwan

+0

죄송합니다, 그것은 멍청한 질문일지도 모르지만이 명령을 어디에서 사용하고 사용하는가? – Apparatus

1

당신이 그것을 잘못, 친구를 가지고 생각합니다.

Logcat은 "verbose"또는 "debug"레벨을 선택하면 Android 휴대 전화에서 발생한 모든 일을 처리합니다. 그리고 "debug"를 선택한 것 같습니다.

"디버그"를 "경고"또는 "오류"로 전환하면 쓸모없는 것으로 보이는 메시지가 사라지고 더 이상 귀찮게하지 않을 수 있습니다.

그러나 휴대 전화 상태를 전체적으로 파악할 수 있기 때문에 지원하지 않으며 나중에 개발할 때 유용합니다.

내 답변을 통해 문제를 해결할 수 있기를 바랍니다.^_^

+0

+1 그리고 답변 해 주셔서 감사합니다. 이제 큰 질문은 대답을 받아 들여야한다는 것입니다.) – Apparatus

1

DDMS에서 logcat 탭을 볼 때 실제 logcat 출력의 왼쪽에 'Saved Filters'창이 있어야합니다. 필터는 아마도 메시지 (출력 한 메시지 및 앱에서 생성 한 일부 시스템 메시지)를 보려는 방식 일 수 있으므로 작동하는 메시지 만 가져와야합니다.

나를 위해 세션 필터가 자동으로 만들어 지므로 어떤 프로그램을 실행하든 필터링됩니다. '모든 메시지'에서 프로그램을 확인하고 클릭하십시오. 여기 나를 위해 모습의 사진입니다 : 세션 필터가 자동으로 생성되지

automatic session filter

경우, 하나를합니다. 초록색 더하기 기호를 클릭하고 '애플리케이션 이름 별'입력란에 앱 이름을 입력하십시오.

+0

+1 그리고 답해 주셔서 감사합니다. 이제 큰 질문은 어떤 대답이 받아 들여 져야만하는지입니다;) – Apparatus