xLog
xLog copied to clipboard
无法打印json
String jsonString = "{"name": "Elvis", "age": 18}"; XLog.json(jsonString);
打印不出来..
@denghui1010
- Have you initialize the xLog? If not, an exception would be thrown.
- Did you set the log level too high? XLog.json use the DEBUG level
知道原因了, 在一些华为手机上, debug等级的log不会显示, see this, http://blog.csdn.net/seafishyls/article/details/52198814, so 我建议把打印json设成info等级
另外, json格式出现了奇怪的缩进,