2015-01-15 1 views
0

네트워크 요구 사항을 확인하기 위해 개조를 사용하고 있지만 사용할 @annotation이 확실하지 않아서 PostMan Utility를 사용하여 성공적으로 요청을 처리했지만 Android 앱에서 올바른 정보를 얻을 수 없습니다. 따라서 네트워크 검사기에서 디버깅하고 싶습니다.디버그를 개조하여 네트워크 요청 정보를 생성합니다.

내 Android App/Emulator를 사용하여 아래 로그와 유사한 로그/보고서를 생성하려면 어떻게해야합니까?

POST /path/to/api/ HTTP/1.1 
Content-Length: [length] 
Content-Type: multipart/form-data; boundary=iSBcxYW-SeE_dubqNJw3p6PP59WbDOAj 

--iSBcxYW-SeE_dubqNJw3p6PP59WbDOAj 
Content-Disposition: form-data; name="file" 

test 
--iSBcxYW-SeE_dubqNJw3p6PP59WbDOAj-- 

답변

3

당신은 개량을 위해 restadapter의 로그를 볼 로그 레벨을 설정할 수 있습니다 : -

RestAdapter restAdapter = new RestAdapter.Builder().setEndpoint(your_url_endpoint) 
      .setRequestInterceptor(requestInterceptor) 
      .setLogLevel(RestAdapter.LogLevel.FULL) 
      .setLog(new AndroidLog("your log tag")) 
      .build(); 
관련 문제