提交 90bcbde9 编写于 作者: Z ZhaoKaiQiang

Merge pull request #16 from normalhh/master

添加针对JsonString长度的判断,当长度大于12000时,循环逐行打印,小于12000时,直接打印
...@@ -33,10 +33,14 @@ public class JsonLog { ...@@ -33,10 +33,14 @@ public class JsonLog {
} }
Util.printLine(tag, true); Util.printLine(tag, true);
message = headString + KLog.LINE_SEPARATOR + message; if (message.length() > 12000) {
String[] lines = message.split(KLog.LINE_SEPARATOR); message = headString + KLog.LINE_SEPARATOR + message;
for (String line : lines) { String[] lines = message.split(KLog.LINE_SEPARATOR);
Log.d(tag, "║ " + line); for (String line : lines) {
Log.d(tag, "║ " + line);
}
} else {
Log.d(tag, "║ " + message);
} }
Util.printLine(tag, false); Util.printLine(tag, false);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册