How to display long messages in logcat

后端 未结 10 1066
轻奢々
轻奢々 2020-11-29 01:08

I am trying to display long message on logcat. If the length of message is more than 1000 characters, it gets broken.

What is the mechanism to show all characters o

10条回答
  •  甜味超标
    2020-11-29 01:27

    I consider Timber a good option for this issue. Timber automatically split and print chunks of message in logcat.

    https://github.com/JakeWharton/timber

    You can see log method implementation in timber.log.Timber.DebugTree static class.

提交回复
热议问题