How to change size of logcat buffer in Android?

前端 未结 8 525
隐瞒了意图╮
隐瞒了意图╮ 2020-12-28 13:47

I noticed that the size of the logcat buffer varies on different devices. Assuming I have root permissions on my device, is there a way to change the buffer size of the main

8条回答
  •  粉色の甜心
    2020-12-28 14:15

    No, as per here it seems that the log buffers on the device are 64 KB. The timestamp, process ID, and log level are stored in a compact format, so you may actually get more than 64 KB of formatted data out of logcat -d -v .

    See also Stack Overflow question What is the size limit for Logcat?.

    Anyway, for saving logs elsewhere, you have Reading and Writing Logs. That maybe could help you.

提交回复
热议问题