logger icon indicating copy to clipboard operation
logger copied to clipboard

Wrapper for printStackTrace?

Open tonnyavery opened this issue 8 years ago • 2 comments

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?

tonnyavery avatar Jan 26 '17 18:01 tonnyavery

@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.

orhanobut avatar May 28 '17 12:05 orhanobut

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?

tonnyavery avatar May 30 '17 12:05 tonnyavery