개발자의 백팩

[Android]로그가 길어서 짤렸을때! 본문

Android

[Android]로그가 길어서 짤렸을때!

gunnoooow 2019. 9. 19. 17:01
1
2
3
4
5
6
7
8
public void LogLineBreak(String str) {
    if (str.length() > 3000) {    // 텍스트가 3000자 이상이 넘어가면 줄 
        Log.i("e", str.substring(03000));
        LogLineBreak(str.substring(3000));
    } else {
        Log.i("e", str); 
    }
}
http://colorscripter.com/info#e" target="_blank" style="color:#4f4f4ftext-decoration:none">Colored by Color Scripter
http://colorscripter.com/info#e" target="_blank" style="text-decoration:none;color:white">cs