adb logcat: Increase the maximal message length

我的未来我决定 提交于 2019-12-01 19:29:59

max entry and max payload are harcoded as below. So i dont think you can change them.

'#define LOGGER_ENTRY_MAX_LEN (4*1024)
'#define LOGGER_ENTRY_MAX_PAYLOAD \ (LOGGER_ENTRY_MAX_LEN - sizeof(struct logger_entry))

Maybe you can create a custom class, which to you send your logmessages, which then divides them into multiple messages. like:

MyLogger.d("LOG_TAG",veryLongMessage);  

This class then just could check the size of the message, and split it up if nessecary, and then pass them into Log.d().

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!