Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

打印字符串长度超过4053个字符就会丢失10个字符左右 #85

Closed
qiubin2016 opened this issue May 5, 2020 · 2 comments
Closed

Comments

@qiubin2016
Copy link

XLog.init(LogLevel.ALL);
Logger xlog = XLog.tag(TAG).build();
String string = "00000000000000001111111"; //超过4053个字符就会丢失字符,最多丢失10个字符,会自动换行打印;
xlog.i(string);

@elvishew
Copy link
Owner

@qiubin2016 What device did you test on?
Besides, you can use new AndroidPrinter(int maxChunkSize) instead on new AndroidPrinter(), and specify a safe chunk size, for example 4053.

@elvishew
Copy link
Owner

Change default chunk size to 4000 in release 1.7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants