orhanobut / logger

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

Wrapper for printStackTrace? #107

Open AAverin opened 7 years ago

AAverin commented 7 years ago

Android logs are limited to 4k chars, and printStackTrace can be quite long, especially if it's a layout inflating exception or rx exception. Is there some way to see full stack trace without it being cut at 4k symbols via this library?

orhanobut commented 7 years ago

@AAverin If the log message is bigger 4k characters, it's split into chunks and merged as a one message as output. That would work as expected, although joint point won't be as smooth as expected. Ring buffer is device dependent, you can also change the settings of the device and increase the buffer for logcat for debug of course.

Or I'm missing something in the question. Is that what you asked or you are asking actually a different thing.

AAverin commented 7 years ago

Printing an error that, in total, has more than 4K symbols, results in a cut stacktrace. The usual way to see an exception is to printStackTrace it. Is there a way I can print an exception to see it in full, without symbols being cut in the middle?