orhanobut / logger

✔️ Simple, pretty and powerful logger for android
Apache License 2.0
13.82k stars 2.14k forks source link

Fix #87. #252

Open michaellee123 opened 3 years ago

michaellee123 commented 3 years ago

When I log a json very long, and it has some Chinese words or other multi-bytes UTF-8 charset, logcat will show some charset like '???'. So it fixed it, and I found an old issue that have same problem with me, it's #87. After I fixed it, I found a new bug, if once print with lines too mach, will lost some logs, I thought it's Android System's bug or feature. You can reappear it with run this:

for (int i = 0; i <= 100000; i++) {
  Log.println(6, "max limit", i + "");
}

Then, it won't print 100000.

michaellee123 commented 3 years ago

@orhanobut