Detailed debug logs with Volley

前端 未结 5 1077
悲哀的现实
悲哀的现实 2020-12-03 14:08

In Restkit on iOS there is a verbose debug option. RKLogConfigureByName(\"*\", RKLogLevelTrace);. Does anyone know if there is an equivalent for Volley. Basical

5条回答
  •  暖寄归人
    2020-12-03 14:41

    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 omit the -s argument

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

    Kill and restart your app to apply the setting.

提交回复
热议问题