相关详细调试与排球排球、详细

2023-09-05 07:56:34 作者:晚风千千

在Restkit在iOS上有一个详细的调试选项。 RKLogConfigureByName(*,RKLogLevelTrace); 。有谁知道如果有一个相当于乱射。基本上,我会直接到ErrorListener,但我得到了LogCat中没有额外的信息。既:

  VolleyLog.e(错误:error.toString());
 

  VolleyLog.e(错误:error.getMessage());
 
与排球结缘的29年 中学教师当选杭州亚运会裁判

打印:

  2.onErrorResponse:错误:
 

解决方案

如果您想从凌空库,你必须使用adb详细日志

  ADB -s 42f63b0de7318fe1壳setprop log.tag.Volley VERBOSE
 

其中 42f63b0de7318fe1 是你的设备ID,你将通过

获得

  ADB设备
 

如果您想保留此设置使用

  ADB -s 42f63b0de7318fe1壳setprop persist.log.tag.Volley VERBOSE
 

如果你只有1设备,您可以ommit的 -S 参数

又见How设置在Eclipse ADT系统属性,因此它始终运行

In Restkit on iOS there is a verbose debug option. RKLogConfigureByName("*", RKLogLevelTrace);. Does anyone know if there is an equivalent for Volley. Basically I am going straight to the ErrorListener but I get no additional info in LogCat. Both:

VolleyLog.e("Error: ", error.toString());

And:

VolleyLog.e("Error: ", error.getMessage());

Prints:

2.onErrorResponse: Error: 

解决方案

If you want verbose Log from the volley library you have to use adb

adb -s 42f63b0de7318fe1 shell setprop log.tag.Volley VERBOSE

where "42f63b0de7318fe1" is your device id which you will get by

adb devices

If you want to persist this setting use

adb -s 42f63b0de7318fe1 shell setprop persist.log.tag.Volley VERBOSE

If you have only 1 device you can ommit the -s argument

see also How to set ADT system property in eclipse so it always runs