简体   繁体   中英

HTTP Response logging if using Ion

We can set logging if we use Ion to make HTTP connection to server as below

Ion.getDefault(getContext()).configure().setLogging("MyLogs", Log.DEBUG);

But we can't see the HTTP response from server from log that generated.

How to see HTTP response ?

离子不会将响应主体放入日志中,因为主体可能是巨大的,二进制的,等等。如果要记录主体,请自己在setCallback中进行记录。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM